/* 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 UserAttributeEnum = {
    Username: "username",
    Email: "email",
    UnknownDefaultOpenApi: "11184809",
} as const;
export type UserAttributeEnum = (typeof UserAttributeEnum)[keyof typeof UserAttributeEnum];

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

export function UserAttributeEnumFromJSON(json: any): UserAttributeEnum {
    return UserAttributeEnumFromJSONTyped(json, false);
}

export function UserAttributeEnumFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): UserAttributeEnum {
    return json as UserAttributeEnum;
}

export function UserAttributeEnumToJSON(value?: UserAttributeEnum | null): any {
    return value as any;
}

export function UserAttributeEnumToJSONTyped(
    value: any,
    ignoreDiscriminator: boolean,
): UserAttributeEnum {
    return value as UserAttributeEnum;
}
