/* 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
 */
export const ContentTypeEnum = {
    AuthentikCoreApplication: "authentik_core.application",
    AuthentikCoreGroup: "authentik_core.group",
    AuthentikRbacRole: "authentik_rbac.role",
    UnknownDefaultOpenApi: "11184809",
} as const;
export type ContentTypeEnum = (typeof ContentTypeEnum)[keyof typeof ContentTypeEnum];

export function instanceOfContentTypeEnum(value: any): boolean {
    for (const key in ContentTypeEnum) {
        if (Object.prototype.hasOwnProperty.call(ContentTypeEnum, key)) {
            if (ContentTypeEnum[key as keyof typeof ContentTypeEnum] === value) {
                return true;
            }
        }
    }
    return false;
}

export function ContentTypeEnumFromJSON(json: any): ContentTypeEnum {
    return ContentTypeEnumFromJSONTyped(json, false);
}

export function ContentTypeEnumFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): ContentTypeEnum {
    return json as ContentTypeEnum;
}

export function ContentTypeEnumToJSON(value?: ContentTypeEnum | null): any {
    return value as any;
}

export function ContentTypeEnumToJSONTyped(
    value: any,
    ignoreDiscriminator: boolean,
): ContentTypeEnum {
    return value as ContentTypeEnum;
}
