"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.instanceOfPatchedPasswordStageRequest = instanceOfPatchedPasswordStageRequest;
exports.PatchedPasswordStageRequestFromJSON = PatchedPasswordStageRequestFromJSON;
exports.PatchedPasswordStageRequestFromJSONTyped = PatchedPasswordStageRequestFromJSONTyped;
exports.PatchedPasswordStageRequestToJSON = PatchedPasswordStageRequestToJSON;
exports.PatchedPasswordStageRequestToJSONTyped = PatchedPasswordStageRequestToJSONTyped;
const BackendsEnum_1 = require("./BackendsEnum");
/**
 * Check if a given object implements the PatchedPasswordStageRequest interface.
 */
function instanceOfPatchedPasswordStageRequest(value) {
    return true;
}
function PatchedPasswordStageRequestFromJSON(json) {
    return PatchedPasswordStageRequestFromJSONTyped(json, false);
}
function PatchedPasswordStageRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'] == null ? undefined : json['name'],
        'backends': json['backends'] == null ? undefined : (json['backends'].map(BackendsEnum_1.BackendsEnumFromJSON)),
        'configureFlow': json['configure_flow'] == null ? undefined : json['configure_flow'],
        'failedAttemptsBeforeCancel': json['failed_attempts_before_cancel'] == null ? undefined : json['failed_attempts_before_cancel'],
        'allowShowPassword': json['allow_show_password'] == null ? undefined : json['allow_show_password'],
    };
}
function PatchedPasswordStageRequestToJSON(json) {
    return PatchedPasswordStageRequestToJSONTyped(json, false);
}
function PatchedPasswordStageRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'backends': value['backends'] == null ? undefined : (value['backends'].map(BackendsEnum_1.BackendsEnumToJSON)),
        'configure_flow': value['configureFlow'],
        'failed_attempts_before_cancel': value['failedAttemptsBeforeCancel'],
        'allow_show_password': value['allowShowPassword'],
    };
}
//# sourceMappingURL=PatchedPasswordStageRequest.js.map