"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.0-rc5
 * 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.instanceOfAuthenticatorDuoStageRequest = instanceOfAuthenticatorDuoStageRequest;
exports.AuthenticatorDuoStageRequestFromJSON = AuthenticatorDuoStageRequestFromJSON;
exports.AuthenticatorDuoStageRequestFromJSONTyped = AuthenticatorDuoStageRequestFromJSONTyped;
exports.AuthenticatorDuoStageRequestToJSON = AuthenticatorDuoStageRequestToJSON;
exports.AuthenticatorDuoStageRequestToJSONTyped = AuthenticatorDuoStageRequestToJSONTyped;
/**
 * Check if a given object implements the AuthenticatorDuoStageRequest interface.
 */
function instanceOfAuthenticatorDuoStageRequest(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('clientId' in value) || value['clientId'] === undefined)
        return false;
    if (!('clientSecret' in value) || value['clientSecret'] === undefined)
        return false;
    if (!('apiHostname' in value) || value['apiHostname'] === undefined)
        return false;
    return true;
}
function AuthenticatorDuoStageRequestFromJSON(json) {
    return AuthenticatorDuoStageRequestFromJSONTyped(json, false);
}
function AuthenticatorDuoStageRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'],
        'configureFlow': json['configure_flow'] == null ? undefined : json['configure_flow'],
        'friendlyName': json['friendly_name'] == null ? undefined : json['friendly_name'],
        'clientId': json['client_id'],
        'clientSecret': json['client_secret'],
        'apiHostname': json['api_hostname'],
        'adminIntegrationKey': json['admin_integration_key'] == null ? undefined : json['admin_integration_key'],
        'adminSecretKey': json['admin_secret_key'] == null ? undefined : json['admin_secret_key'],
    };
}
function AuthenticatorDuoStageRequestToJSON(json) {
    return AuthenticatorDuoStageRequestToJSONTyped(json, false);
}
function AuthenticatorDuoStageRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'configure_flow': value['configureFlow'],
        'friendly_name': value['friendlyName'],
        'client_id': value['clientId'],
        'client_secret': value['clientSecret'],
        'api_hostname': value['apiHostname'],
        'admin_integration_key': value['adminIntegrationKey'],
        'admin_secret_key': value['adminSecretKey'],
    };
}
//# sourceMappingURL=AuthenticatorDuoStageRequest.js.map