/* 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 UserCreationModeEnum = {
    NeverCreate: 'never_create',
    CreateWhenRequired: 'create_when_required',
    AlwaysCreate: 'always_create',
    UnknownDefaultOpenApi: '11184809'
} as const;
export type UserCreationModeEnum = typeof UserCreationModeEnum[keyof typeof UserCreationModeEnum];


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

export function UserCreationModeEnumFromJSON(json: any): UserCreationModeEnum {
    return UserCreationModeEnumFromJSONTyped(json, false);
}

export function UserCreationModeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserCreationModeEnum {
    return json as UserCreationModeEnum;
}

export function UserCreationModeEnumToJSON(value?: UserCreationModeEnum | null): any {
    return value as any;
}

export function UserCreationModeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): UserCreationModeEnum {
    return value as UserCreationModeEnum;
}

