/* 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 UserFieldsEnum = {
    Email: 'email',
    Username: 'username',
    Upn: 'upn',
    UnknownDefaultOpenApi: '11184809'
} as const;
export type UserFieldsEnum = typeof UserFieldsEnum[keyof typeof UserFieldsEnum];


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

export function UserFieldsEnumFromJSON(json: any): UserFieldsEnum {
    return UserFieldsEnumFromJSONTyped(json, false);
}

export function UserFieldsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserFieldsEnum {
    return json as UserFieldsEnum;
}

export function UserFieldsEnumToJSON(value?: UserFieldsEnum | null): any {
    return value as any;
}

export function UserFieldsEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): UserFieldsEnum {
    return value as UserFieldsEnum;
}

