/* 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 StageModeEnum = {
    Optional: "optional",
    Required: "required",
    UnknownDefaultOpenApi: "11184809",
} as const;
export type StageModeEnum = (typeof StageModeEnum)[keyof typeof StageModeEnum];

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

export function StageModeEnumFromJSON(json: any): StageModeEnum {
    return StageModeEnumFromJSONTyped(json, false);
}

export function StageModeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): StageModeEnum {
    return json as StageModeEnum;
}

export function StageModeEnumToJSON(value?: StageModeEnum | null): any {
    return value as any;
}

export function StageModeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): StageModeEnum {
    return value as StageModeEnum;
}
