/* 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 GroupMatchingModeEnum = {
    Identifier: "identifier",
    NameLink: "name_link",
    NameDeny: "name_deny",
    UnknownDefaultOpenApi: "11184809",
} as const;
export type GroupMatchingModeEnum =
    (typeof GroupMatchingModeEnum)[keyof typeof GroupMatchingModeEnum];

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

export function GroupMatchingModeEnumFromJSON(json: any): GroupMatchingModeEnum {
    return GroupMatchingModeEnumFromJSONTyped(json, false);
}

export function GroupMatchingModeEnumFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): GroupMatchingModeEnum {
    return json as GroupMatchingModeEnum;
}

export function GroupMatchingModeEnumToJSON(value?: GroupMatchingModeEnum | null): any {
    return value as any;
}

export function GroupMatchingModeEnumToJSONTyped(
    value: any,
    ignoreDiscriminator: boolean,
): GroupMatchingModeEnum {
    return value as GroupMatchingModeEnum;
}
