"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.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.instanceOfAuthenticatorTOTPChallengeResponseRequest = instanceOfAuthenticatorTOTPChallengeResponseRequest;
exports.AuthenticatorTOTPChallengeResponseRequestFromJSON = AuthenticatorTOTPChallengeResponseRequestFromJSON;
exports.AuthenticatorTOTPChallengeResponseRequestFromJSONTyped = AuthenticatorTOTPChallengeResponseRequestFromJSONTyped;
exports.AuthenticatorTOTPChallengeResponseRequestToJSON = AuthenticatorTOTPChallengeResponseRequestToJSON;
exports.AuthenticatorTOTPChallengeResponseRequestToJSONTyped = AuthenticatorTOTPChallengeResponseRequestToJSONTyped;
/**
 * Check if a given object implements the AuthenticatorTOTPChallengeResponseRequest interface.
 */
function instanceOfAuthenticatorTOTPChallengeResponseRequest(value) {
    if (!('code' in value) || value['code'] === undefined)
        return false;
    return true;
}
function AuthenticatorTOTPChallengeResponseRequestFromJSON(json) {
    return AuthenticatorTOTPChallengeResponseRequestFromJSONTyped(json, false);
}
function AuthenticatorTOTPChallengeResponseRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'component': json['component'] == null ? undefined : json['component'],
        'code': json['code'],
    };
}
function AuthenticatorTOTPChallengeResponseRequestToJSON(json) {
    return AuthenticatorTOTPChallengeResponseRequestToJSONTyped(json, false);
}
function AuthenticatorTOTPChallengeResponseRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'component': value['component'],
        'code': value['code'],
    };
}
//# sourceMappingURL=AuthenticatorTOTPChallengeResponseRequest.js.map