/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.5.0-rc1
 * Contact: hello@goauthentik.io
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface ContentType
 */
export interface ContentType {
    /**
     *
     * @type {number}
     * @memberof ContentType
     */
    readonly id: number;
    /**
     *
     * @type {string}
     * @memberof ContentType
     */
    readonly appLabel: string;
    /**
     *
     * @type {string}
     * @memberof ContentType
     */
    readonly model: string;
    /**
     *
     * @type {string}
     * @memberof ContentType
     */
    readonly verboseNamePlural: string;
}

/**
 * Check if a given object implements the ContentType interface.
 */
export function instanceOfContentType(value: object): value is ContentType {
    if (!("id" in value) || value["id"] === undefined) return false;
    if (!("appLabel" in value) || value["appLabel"] === undefined) return false;
    if (!("model" in value) || value["model"] === undefined) return false;
    if (!("verboseNamePlural" in value) || value["verboseNamePlural"] === undefined) return false;
    return true;
}

export function ContentTypeFromJSON(json: any): ContentType {
    return ContentTypeFromJSONTyped(json, false);
}

export function ContentTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentType {
    if (json == null) {
        return json;
    }
    return {
        id: json["id"],
        appLabel: json["app_label"],
        model: json["model"],
        verboseNamePlural: json["verbose_name_plural"],
    };
}

export function ContentTypeToJSON(json: any): ContentType {
    return ContentTypeToJSONTyped(json, false);
}

export function ContentTypeToJSONTyped(
    value?: Omit<ContentType, "id" | "app_label" | "model" | "verbose_name_plural"> | null,
    ignoreDiscriminator: boolean = false,
): any {
    if (value == null) {
        return value;
    }

    return {};
}
