/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.10.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 SubModeEnum = {
    HashedUserId: 'hashed_user_id',
    UserId: 'user_id',
    UserUuid: 'user_uuid',
    UserUsername: 'user_username',
    UserEmail: 'user_email',
    UserUpn: 'user_upn',
    UnknownDefaultOpenApi: '11184809'
} as const;
export type SubModeEnum = typeof SubModeEnum[keyof typeof SubModeEnum];


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

export function SubModeEnumFromJSON(json: any): SubModeEnum {
    return SubModeEnumFromJSONTyped(json, false);
}

export function SubModeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubModeEnum {
    return json as SubModeEnum;
}

export function SubModeEnumToJSON(value?: SubModeEnum | null): any {
    return value as any;
}

export function SubModeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): SubModeEnum {
    return value as SubModeEnum;
}

