/* 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 PKCEMethodEnum = {
    None: "none",
    Plain: "plain",
    S256: "S256",
    UnknownDefaultOpenApi: "11184809",
} as const;
export type PKCEMethodEnum = (typeof PKCEMethodEnum)[keyof typeof PKCEMethodEnum];

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

export function PKCEMethodEnumFromJSON(json: any): PKCEMethodEnum {
    return PKCEMethodEnumFromJSONTyped(json, false);
}

export function PKCEMethodEnumFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): PKCEMethodEnum {
    return json as PKCEMethodEnum;
}

export function PKCEMethodEnumToJSON(value?: PKCEMethodEnum | null): any {
    return value as any;
}

export function PKCEMethodEnumToJSONTyped(
    value: any,
    ignoreDiscriminator: boolean,
): PKCEMethodEnum {
    return value as PKCEMethodEnum;
}
