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

/**
 * Validate response, fields are dynamically created based
 * on the stage
 * @export
 * @interface PromptChallengeResponseRequest
 */
export interface PromptChallengeResponseRequest {
    [key: string]: any | any;
    /**
     *
     * @type {string}
     * @memberof PromptChallengeResponseRequest
     */
    component?: string;
}

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

export function PromptChallengeResponseRequestFromJSON(json: any): PromptChallengeResponseRequest {
    return PromptChallengeResponseRequestFromJSONTyped(json, false);
}

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

export function PromptChallengeResponseRequestToJSON(json: any): PromptChallengeResponseRequest {
    return PromptChallengeResponseRequestToJSONTyped(json, false);
}

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

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