/* 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
 * @interface PatchedAppleIndependentSecureEnclaveRequest
 */
export interface PatchedAppleIndependentSecureEnclaveRequest {
    /**
     *
     * @type {string}
     * @memberof PatchedAppleIndependentSecureEnclaveRequest
     */
    uuid?: string;
    /**
     * The user that this device belongs to.
     * @type {number}
     * @memberof PatchedAppleIndependentSecureEnclaveRequest
     */
    user?: number;
    /**
     *
     * @type {string}
     * @memberof PatchedAppleIndependentSecureEnclaveRequest
     */
    appleSecureEnclaveKey?: string;
    /**
     *
     * @type {string}
     * @memberof PatchedAppleIndependentSecureEnclaveRequest
     */
    appleEnclaveKeyId?: string;
    /**
     *
     * @type {string}
     * @memberof PatchedAppleIndependentSecureEnclaveRequest
     */
    deviceType?: string;
}

/**
 * Check if a given object implements the PatchedAppleIndependentSecureEnclaveRequest interface.
 */
export function instanceOfPatchedAppleIndependentSecureEnclaveRequest(
    value: object,
): value is PatchedAppleIndependentSecureEnclaveRequest {
    return true;
}

export function PatchedAppleIndependentSecureEnclaveRequestFromJSON(
    json: any,
): PatchedAppleIndependentSecureEnclaveRequest {
    return PatchedAppleIndependentSecureEnclaveRequestFromJSONTyped(json, false);
}

export function PatchedAppleIndependentSecureEnclaveRequestFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): PatchedAppleIndependentSecureEnclaveRequest {
    if (json == null) {
        return json;
    }
    return {
        uuid: json["uuid"] == null ? undefined : json["uuid"],
        user: json["user"] == null ? undefined : json["user"],
        appleSecureEnclaveKey:
            json["apple_secure_enclave_key"] == null ? undefined : json["apple_secure_enclave_key"],
        appleEnclaveKeyId:
            json["apple_enclave_key_id"] == null ? undefined : json["apple_enclave_key_id"],
        deviceType: json["device_type"] == null ? undefined : json["device_type"],
    };
}

export function PatchedAppleIndependentSecureEnclaveRequestToJSON(
    json: any,
): PatchedAppleIndependentSecureEnclaveRequest {
    return PatchedAppleIndependentSecureEnclaveRequestToJSONTyped(json, false);
}

export function PatchedAppleIndependentSecureEnclaveRequestToJSONTyped(
    value?: PatchedAppleIndependentSecureEnclaveRequest | null,
    ignoreDiscriminator: boolean = false,
): any {
    if (value == null) {
        return value;
    }

    return {
        uuid: value["uuid"],
        user: value["user"],
        apple_secure_enclave_key: value["appleSecureEnclaveKey"],
        apple_enclave_key_id: value["appleEnclaveKeyId"],
        device_type: value["deviceType"],
    };
}
