/* 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 StateEnum = {
    Queued: 'queued',
    Consumed: 'consumed',
    Rejected: 'rejected',
    Done: 'done',
    UnknownDefaultOpenApi: '11184809'
} as const;
export type StateEnum = typeof StateEnum[keyof typeof StateEnum];


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

export function StateEnumFromJSON(json: any): StateEnum {
    return StateEnumFromJSONTyped(json, false);
}

export function StateEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): StateEnum {
    return json as StateEnum;
}

export function StateEnumToJSON(value?: StateEnum | null): any {
    return value as any;
}

export function StateEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): StateEnum {
    return value as StateEnum;
}

