/* 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 BindingTypeEnum = {
    Redirect: "REDIRECT",
    Post: "POST",
    PostAuto: "POST_AUTO",
    UnknownDefaultOpenApi: "11184809",
} as const;
export type BindingTypeEnum = (typeof BindingTypeEnum)[keyof typeof BindingTypeEnum];

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

export function BindingTypeEnumFromJSON(json: any): BindingTypeEnum {
    return BindingTypeEnumFromJSONTyped(json, false);
}

export function BindingTypeEnumFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): BindingTypeEnum {
    return json as BindingTypeEnum;
}

export function BindingTypeEnumToJSON(value?: BindingTypeEnum | null): any {
    return value as any;
}

export function BindingTypeEnumToJSONTyped(
    value: any,
    ignoreDiscriminator: boolean,
): BindingTypeEnum {
    return value as BindingTypeEnum;
}
