/* 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 UsageEnum = {
    Media: "media",
    UnknownDefaultOpenApi: "11184809",
} as const;
export type UsageEnum = (typeof UsageEnum)[keyof typeof UsageEnum];

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

export function UsageEnumFromJSON(json: any): UsageEnum {
    return UsageEnumFromJSONTyped(json, false);
}

export function UsageEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsageEnum {
    return json as UsageEnum;
}

export function UsageEnumToJSON(value?: UsageEnum | null): any {
    return value as any;
}

export function UsageEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): UsageEnum {
    return value as UsageEnum;
}
