"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.12.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.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfAuthenticatorValidationChallengeResponseRequest = instanceOfAuthenticatorValidationChallengeResponseRequest;
exports.AuthenticatorValidationChallengeResponseRequestFromJSON = AuthenticatorValidationChallengeResponseRequestFromJSON;
exports.AuthenticatorValidationChallengeResponseRequestFromJSONTyped = AuthenticatorValidationChallengeResponseRequestFromJSONTyped;
exports.AuthenticatorValidationChallengeResponseRequestToJSON = AuthenticatorValidationChallengeResponseRequestToJSON;
exports.AuthenticatorValidationChallengeResponseRequestToJSONTyped = AuthenticatorValidationChallengeResponseRequestToJSONTyped;
const DeviceChallengeRequest_1 = require("./DeviceChallengeRequest");
/**
 * Check if a given object implements the AuthenticatorValidationChallengeResponseRequest interface.
 */
function instanceOfAuthenticatorValidationChallengeResponseRequest(value) {
    return true;
}
function AuthenticatorValidationChallengeResponseRequestFromJSON(json) {
    return AuthenticatorValidationChallengeResponseRequestFromJSONTyped(json, false);
}
function AuthenticatorValidationChallengeResponseRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'component': json['component'] == null ? undefined : json['component'],
        'selectedChallenge': json['selected_challenge'] == null ? undefined : (0, DeviceChallengeRequest_1.DeviceChallengeRequestFromJSON)(json['selected_challenge']),
        'selectedStage': json['selected_stage'] == null ? undefined : json['selected_stage'],
        'code': json['code'] == null ? undefined : json['code'],
        'webauthn': json['webauthn'] == null ? undefined : json['webauthn'],
        'duo': json['duo'] == null ? undefined : json['duo'],
    };
}
function AuthenticatorValidationChallengeResponseRequestToJSON(json) {
    return AuthenticatorValidationChallengeResponseRequestToJSONTyped(json, false);
}
function AuthenticatorValidationChallengeResponseRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'component': value['component'],
        'selected_challenge': (0, DeviceChallengeRequest_1.DeviceChallengeRequestToJSON)(value['selectedChallenge']),
        'selected_stage': value['selectedStage'],
        'code': value['code'],
        'webauthn': value['webauthn'],
        'duo': value['duo'],
    };
}
//# sourceMappingURL=AuthenticatorValidationChallengeResponseRequest.js.map