"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.instanceOfMutualTLSStageRequest = instanceOfMutualTLSStageRequest;
exports.MutualTLSStageRequestFromJSON = MutualTLSStageRequestFromJSON;
exports.MutualTLSStageRequestFromJSONTyped = MutualTLSStageRequestFromJSONTyped;
exports.MutualTLSStageRequestToJSON = MutualTLSStageRequestToJSON;
exports.MutualTLSStageRequestToJSONTyped = MutualTLSStageRequestToJSONTyped;
const StageModeEnum_1 = require("./StageModeEnum");
const CertAttributeEnum_1 = require("./CertAttributeEnum");
const UserAttributeEnum_1 = require("./UserAttributeEnum");
/**
 * Check if a given object implements the MutualTLSStageRequest interface.
 */
function instanceOfMutualTLSStageRequest(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('mode' in value) || value['mode'] === undefined)
        return false;
    if (!('certAttribute' in value) || value['certAttribute'] === undefined)
        return false;
    if (!('userAttribute' in value) || value['userAttribute'] === undefined)
        return false;
    return true;
}
function MutualTLSStageRequestFromJSON(json) {
    return MutualTLSStageRequestFromJSONTyped(json, false);
}
function MutualTLSStageRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'],
        'mode': (0, StageModeEnum_1.StageModeEnumFromJSON)(json['mode']),
        'certificateAuthorities': json['certificate_authorities'] == null ? undefined : json['certificate_authorities'],
        'certAttribute': (0, CertAttributeEnum_1.CertAttributeEnumFromJSON)(json['cert_attribute']),
        'userAttribute': (0, UserAttributeEnum_1.UserAttributeEnumFromJSON)(json['user_attribute']),
    };
}
function MutualTLSStageRequestToJSON(json) {
    return MutualTLSStageRequestToJSONTyped(json, false);
}
function MutualTLSStageRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'mode': (0, StageModeEnum_1.StageModeEnumToJSON)(value['mode']),
        'certificate_authorities': value['certificateAuthorities'],
        'cert_attribute': (0, CertAttributeEnum_1.CertAttributeEnumToJSON)(value['certAttribute']),
        'user_attribute': (0, UserAttributeEnum_1.UserAttributeEnumToJSON)(value['userAttribute']),
    };
}
//# sourceMappingURL=MutualTLSStageRequest.js.map