/* 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 FormatEnum = {
    Json: "json",
    Yaml: "yaml",
    UnknownDefaultOpenApi: "11184809",
} as const;
export type FormatEnum = (typeof FormatEnum)[keyof typeof FormatEnum];

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

export function FormatEnumFromJSON(json: any): FormatEnum {
    return FormatEnumFromJSONTyped(json, false);
}

export function FormatEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): FormatEnum {
    return json as FormatEnum;
}

export function FormatEnumToJSON(value?: FormatEnum | null): any {
    return value as any;
}

export function FormatEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): FormatEnum {
    return value as FormatEnum;
}
