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

/**
 * Email challenge resposen. No fields. This challenge is
 * always declared invalid to give the user a chance to retry
 * @export
 * @interface EmailChallengeResponseRequest
 */
export interface EmailChallengeResponseRequest {
    /**
     *
     * @type {string}
     * @memberof EmailChallengeResponseRequest
     */
    component?: string;
}

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

export function EmailChallengeResponseRequestFromJSON(json: any): EmailChallengeResponseRequest {
    return EmailChallengeResponseRequestFromJSONTyped(json, false);
}

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

export function EmailChallengeResponseRequestToJSON(json: any): EmailChallengeResponseRequest {
    return EmailChallengeResponseRequestToJSONTyped(json, false);
}

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

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