/* 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 AuthorizationCodeAuthMethodEnum = {
    BasicAuth: "basic_auth",
    PostBody: "post_body",
    UnknownDefaultOpenApi: "11184809",
} as const;
export type AuthorizationCodeAuthMethodEnum =
    (typeof AuthorizationCodeAuthMethodEnum)[keyof typeof AuthorizationCodeAuthMethodEnum];

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

export function AuthorizationCodeAuthMethodEnumFromJSON(
    json: any,
): AuthorizationCodeAuthMethodEnum {
    return AuthorizationCodeAuthMethodEnumFromJSONTyped(json, false);
}

export function AuthorizationCodeAuthMethodEnumFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): AuthorizationCodeAuthMethodEnum {
    return json as AuthorizationCodeAuthMethodEnum;
}

export function AuthorizationCodeAuthMethodEnumToJSON(
    value?: AuthorizationCodeAuthMethodEnum | null,
): any {
    return value as any;
}

export function AuthorizationCodeAuthMethodEnumToJSONTyped(
    value: any,
    ignoreDiscriminator: boolean,
): AuthorizationCodeAuthMethodEnum {
    return value as AuthorizationCodeAuthMethodEnum;
}
