/* 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 OAuth2ProviderLogoutMethodEnum = {
    Backchannel: "backchannel",
    Frontchannel: "frontchannel",
    UnknownDefaultOpenApi: "11184809",
} as const;
export type OAuth2ProviderLogoutMethodEnum =
    (typeof OAuth2ProviderLogoutMethodEnum)[keyof typeof OAuth2ProviderLogoutMethodEnum];

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

export function OAuth2ProviderLogoutMethodEnumFromJSON(json: any): OAuth2ProviderLogoutMethodEnum {
    return OAuth2ProviderLogoutMethodEnumFromJSONTyped(json, false);
}

export function OAuth2ProviderLogoutMethodEnumFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): OAuth2ProviderLogoutMethodEnum {
    return json as OAuth2ProviderLogoutMethodEnum;
}

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

export function OAuth2ProviderLogoutMethodEnumToJSONTyped(
    value: any,
    ignoreDiscriminator: boolean,
): OAuth2ProviderLogoutMethodEnum {
    return value as OAuth2ProviderLogoutMethodEnum;
}
