/* 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.
 */

/**
 * Pseudo class for apple response
 * @export
 * @interface AppleChallengeResponseRequest
 */
export interface AppleChallengeResponseRequest {
    /**
     *
     * @type {string}
     * @memberof AppleChallengeResponseRequest
     */
    component?: string;
}

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

export function AppleChallengeResponseRequestFromJSON(json: any): AppleChallengeResponseRequest {
    return AppleChallengeResponseRequestFromJSONTyped(json, false);
}

export function AppleChallengeResponseRequestFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): AppleChallengeResponseRequest {
    if (json == null) {
        return json;
    }
    return {
        component: json["component"] == null ? undefined : json["component"],
    };
}

export function AppleChallengeResponseRequestToJSON(json: any): AppleChallengeResponseRequest {
    return AppleChallengeResponseRequestToJSONTyped(json, false);
}

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

    return {
        component: value["component"],
    };
}
