/* 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 MatchingModeEnum = {
    Strict: "strict",
    Regex: "regex",
    UnknownDefaultOpenApi: "11184809",
} as const;
export type MatchingModeEnum = (typeof MatchingModeEnum)[keyof typeof MatchingModeEnum];

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

export function MatchingModeEnumFromJSON(json: any): MatchingModeEnum {
    return MatchingModeEnumFromJSONTyped(json, false);
}

export function MatchingModeEnumFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): MatchingModeEnum {
    return json as MatchingModeEnum;
}

export function MatchingModeEnumToJSON(value?: MatchingModeEnum | null): any {
    return value as any;
}

export function MatchingModeEnumToJSONTyped(
    value: any,
    ignoreDiscriminator: boolean,
): MatchingModeEnum {
    return value as MatchingModeEnum;
}
