"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.instanceOfPatchedPasswordPolicyRequest = instanceOfPatchedPasswordPolicyRequest;
exports.PatchedPasswordPolicyRequestFromJSON = PatchedPasswordPolicyRequestFromJSON;
exports.PatchedPasswordPolicyRequestFromJSONTyped = PatchedPasswordPolicyRequestFromJSONTyped;
exports.PatchedPasswordPolicyRequestToJSON = PatchedPasswordPolicyRequestToJSON;
exports.PatchedPasswordPolicyRequestToJSONTyped = PatchedPasswordPolicyRequestToJSONTyped;
/**
 * Check if a given object implements the PatchedPasswordPolicyRequest interface.
 */
function instanceOfPatchedPasswordPolicyRequest(value) {
    return true;
}
function PatchedPasswordPolicyRequestFromJSON(json) {
    return PatchedPasswordPolicyRequestFromJSONTyped(json, false);
}
function PatchedPasswordPolicyRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'] == null ? undefined : json['name'],
        'executionLogging': json['execution_logging'] == null ? undefined : json['execution_logging'],
        'passwordField': json['password_field'] == null ? undefined : json['password_field'],
        'amountDigits': json['amount_digits'] == null ? undefined : json['amount_digits'],
        'amountUppercase': json['amount_uppercase'] == null ? undefined : json['amount_uppercase'],
        'amountLowercase': json['amount_lowercase'] == null ? undefined : json['amount_lowercase'],
        'amountSymbols': json['amount_symbols'] == null ? undefined : json['amount_symbols'],
        'lengthMin': json['length_min'] == null ? undefined : json['length_min'],
        'symbolCharset': json['symbol_charset'] == null ? undefined : json['symbol_charset'],
        'errorMessage': json['error_message'] == null ? undefined : json['error_message'],
        'checkStaticRules': json['check_static_rules'] == null ? undefined : json['check_static_rules'],
        'checkHaveIBeenPwned': json['check_have_i_been_pwned'] == null ? undefined : json['check_have_i_been_pwned'],
        'checkZxcvbn': json['check_zxcvbn'] == null ? undefined : json['check_zxcvbn'],
        'hibpAllowedCount': json['hibp_allowed_count'] == null ? undefined : json['hibp_allowed_count'],
        'zxcvbnScoreThreshold': json['zxcvbn_score_threshold'] == null ? undefined : json['zxcvbn_score_threshold'],
    };
}
function PatchedPasswordPolicyRequestToJSON(json) {
    return PatchedPasswordPolicyRequestToJSONTyped(json, false);
}
function PatchedPasswordPolicyRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'execution_logging': value['executionLogging'],
        'password_field': value['passwordField'],
        'amount_digits': value['amountDigits'],
        'amount_uppercase': value['amountUppercase'],
        'amount_lowercase': value['amountLowercase'],
        'amount_symbols': value['amountSymbols'],
        'length_min': value['lengthMin'],
        'symbol_charset': value['symbolCharset'],
        'error_message': value['errorMessage'],
        'check_static_rules': value['checkStaticRules'],
        'check_have_i_been_pwned': value['checkHaveIBeenPwned'],
        'check_zxcvbn': value['checkZxcvbn'],
        'hibp_allowed_count': value['hibpAllowedCount'],
        'zxcvbn_score_threshold': value['zxcvbnScoreThreshold'],
    };
}
//# sourceMappingURL=PatchedPasswordPolicyRequest.js.map