"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.2-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.instanceOfPatchedMutualTLSStageRequest = instanceOfPatchedMutualTLSStageRequest;
exports.PatchedMutualTLSStageRequestFromJSON = PatchedMutualTLSStageRequestFromJSON;
exports.PatchedMutualTLSStageRequestFromJSONTyped = PatchedMutualTLSStageRequestFromJSONTyped;
exports.PatchedMutualTLSStageRequestToJSON = PatchedMutualTLSStageRequestToJSON;
exports.PatchedMutualTLSStageRequestToJSONTyped = PatchedMutualTLSStageRequestToJSONTyped;
const StageModeEnum_1 = require("./StageModeEnum");
const CertAttributeEnum_1 = require("./CertAttributeEnum");
const UserAttributeEnum_1 = require("./UserAttributeEnum");
/**
 * Check if a given object implements the PatchedMutualTLSStageRequest interface.
 */
function instanceOfPatchedMutualTLSStageRequest(value) {
    return true;
}
function PatchedMutualTLSStageRequestFromJSON(json) {
    return PatchedMutualTLSStageRequestFromJSONTyped(json, false);
}
function PatchedMutualTLSStageRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'] == null ? undefined : json['name'],
        'mode': json['mode'] == null ? undefined : (0, StageModeEnum_1.StageModeEnumFromJSON)(json['mode']),
        'certificateAuthorities': json['certificate_authorities'] == null ? undefined : json['certificate_authorities'],
        'certAttribute': json['cert_attribute'] == null ? undefined : (0, CertAttributeEnum_1.CertAttributeEnumFromJSON)(json['cert_attribute']),
        'userAttribute': json['user_attribute'] == null ? undefined : (0, UserAttributeEnum_1.UserAttributeEnumFromJSON)(json['user_attribute']),
    };
}
function PatchedMutualTLSStageRequestToJSON(json) {
    return PatchedMutualTLSStageRequestToJSONTyped(json, false);
}
function PatchedMutualTLSStageRequestToJSONTyped(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=PatchedMutualTLSStageRequest.js.map