"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.0-rc4
 * 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.instanceOfPatchedWSFederationProviderRequest = instanceOfPatchedWSFederationProviderRequest;
exports.PatchedWSFederationProviderRequestFromJSON = PatchedWSFederationProviderRequestFromJSON;
exports.PatchedWSFederationProviderRequestFromJSONTyped = PatchedWSFederationProviderRequestFromJSONTyped;
exports.PatchedWSFederationProviderRequestToJSON = PatchedWSFederationProviderRequestToJSON;
exports.PatchedWSFederationProviderRequestToJSONTyped = PatchedWSFederationProviderRequestToJSONTyped;
const DigestAlgorithmEnum_1 = require("./DigestAlgorithmEnum");
const SignatureAlgorithmEnum_1 = require("./SignatureAlgorithmEnum");
const SAMLNameIDPolicyEnum_1 = require("./SAMLNameIDPolicyEnum");
/**
 * Check if a given object implements the PatchedWSFederationProviderRequest interface.
 */
function instanceOfPatchedWSFederationProviderRequest(value) {
    return true;
}
function PatchedWSFederationProviderRequestFromJSON(json) {
    return PatchedWSFederationProviderRequestFromJSONTyped(json, false);
}
function PatchedWSFederationProviderRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'] == null ? undefined : json['name'],
        'authenticationFlow': json['authentication_flow'] == null ? undefined : json['authentication_flow'],
        'authorizationFlow': json['authorization_flow'] == null ? undefined : json['authorization_flow'],
        'invalidationFlow': json['invalidation_flow'] == null ? undefined : json['invalidation_flow'],
        'propertyMappings': json['property_mappings'] == null ? undefined : json['property_mappings'],
        'replyUrl': json['reply_url'] == null ? undefined : json['reply_url'],
        'wtrealm': json['wtrealm'] == null ? undefined : json['wtrealm'],
        'assertionValidNotBefore': json['assertion_valid_not_before'] == null ? undefined : json['assertion_valid_not_before'],
        'assertionValidNotOnOrAfter': json['assertion_valid_not_on_or_after'] == null ? undefined : json['assertion_valid_not_on_or_after'],
        'sessionValidNotOnOrAfter': json['session_valid_not_on_or_after'] == null ? undefined : json['session_valid_not_on_or_after'],
        'nameIdMapping': json['name_id_mapping'] == null ? undefined : json['name_id_mapping'],
        'authnContextClassRefMapping': json['authn_context_class_ref_mapping'] == null ? undefined : json['authn_context_class_ref_mapping'],
        'digestAlgorithm': json['digest_algorithm'] == null ? undefined : (0, DigestAlgorithmEnum_1.DigestAlgorithmEnumFromJSON)(json['digest_algorithm']),
        'signatureAlgorithm': json['signature_algorithm'] == null ? undefined : (0, SignatureAlgorithmEnum_1.SignatureAlgorithmEnumFromJSON)(json['signature_algorithm']),
        'signingKp': json['signing_kp'] == null ? undefined : json['signing_kp'],
        'encryptionKp': json['encryption_kp'] == null ? undefined : json['encryption_kp'],
        'signAssertion': json['sign_assertion'] == null ? undefined : json['sign_assertion'],
        'signLogoutRequest': json['sign_logout_request'] == null ? undefined : json['sign_logout_request'],
        'defaultNameIdPolicy': json['default_name_id_policy'] == null ? undefined : (0, SAMLNameIDPolicyEnum_1.SAMLNameIDPolicyEnumFromJSON)(json['default_name_id_policy']),
    };
}
function PatchedWSFederationProviderRequestToJSON(json) {
    return PatchedWSFederationProviderRequestToJSONTyped(json, false);
}
function PatchedWSFederationProviderRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'authentication_flow': value['authenticationFlow'],
        'authorization_flow': value['authorizationFlow'],
        'invalidation_flow': value['invalidationFlow'],
        'property_mappings': value['propertyMappings'],
        'reply_url': value['replyUrl'],
        'wtrealm': value['wtrealm'],
        'assertion_valid_not_before': value['assertionValidNotBefore'],
        'assertion_valid_not_on_or_after': value['assertionValidNotOnOrAfter'],
        'session_valid_not_on_or_after': value['sessionValidNotOnOrAfter'],
        'name_id_mapping': value['nameIdMapping'],
        'authn_context_class_ref_mapping': value['authnContextClassRefMapping'],
        'digest_algorithm': (0, DigestAlgorithmEnum_1.DigestAlgorithmEnumToJSON)(value['digestAlgorithm']),
        'signature_algorithm': (0, SignatureAlgorithmEnum_1.SignatureAlgorithmEnumToJSON)(value['signatureAlgorithm']),
        'signing_kp': value['signingKp'],
        'encryption_kp': value['encryptionKp'],
        'sign_assertion': value['signAssertion'],
        'sign_logout_request': value['signLogoutRequest'],
        'default_name_id_policy': (0, SAMLNameIDPolicyEnum_1.SAMLNameIDPolicyEnumToJSON)(value['defaultNameIdPolicy']),
    };
}
//# sourceMappingURL=PatchedWSFederationProviderRequest.js.map