/* 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 TransportModeEnum = {
    Local: "local",
    Webhook: "webhook",
    WebhookSlack: "webhook_slack",
    Email: "email",
    UnknownDefaultOpenApi: "11184809",
} as const;
export type TransportModeEnum = (typeof TransportModeEnum)[keyof typeof TransportModeEnum];

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

export function TransportModeEnumFromJSON(json: any): TransportModeEnum {
    return TransportModeEnumFromJSONTyped(json, false);
}

export function TransportModeEnumFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): TransportModeEnum {
    return json as TransportModeEnum;
}

export function TransportModeEnumToJSON(value?: TransportModeEnum | null): any {
    return value as any;
}

export function TransportModeEnumToJSONTyped(
    value: any,
    ignoreDiscriminator: boolean,
): TransportModeEnum {
    return value as TransportModeEnum;
}
