/* 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 KeyTypeEnum = {
    Dsa: "dsa",
    Ec: "ec",
    Ed25519: "ed25519",
    Ed448: "ed448",
    Rsa: "rsa",
    UnknownDefaultOpenApi: "11184809",
} as const;
export type KeyTypeEnum = (typeof KeyTypeEnum)[keyof typeof KeyTypeEnum];

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

export function KeyTypeEnumFromJSON(json: any): KeyTypeEnum {
    return KeyTypeEnumFromJSONTyped(json, false);
}

export function KeyTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): KeyTypeEnum {
    return json as KeyTypeEnum;
}

export function KeyTypeEnumToJSON(value?: KeyTypeEnum | null): any {
    return value as any;
}

export function KeyTypeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): KeyTypeEnum {
    return value as KeyTypeEnum;
}
