"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.12.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.instanceOfPatchedIdentificationStageRequest = instanceOfPatchedIdentificationStageRequest;
exports.PatchedIdentificationStageRequestFromJSON = PatchedIdentificationStageRequestFromJSON;
exports.PatchedIdentificationStageRequestFromJSONTyped = PatchedIdentificationStageRequestFromJSONTyped;
exports.PatchedIdentificationStageRequestToJSON = PatchedIdentificationStageRequestToJSON;
exports.PatchedIdentificationStageRequestToJSONTyped = PatchedIdentificationStageRequestToJSONTyped;
const UserFieldsEnum_1 = require("./UserFieldsEnum");
const FlowSetRequest_1 = require("./FlowSetRequest");
/**
 * Check if a given object implements the PatchedIdentificationStageRequest interface.
 */
function instanceOfPatchedIdentificationStageRequest(value) {
    return true;
}
function PatchedIdentificationStageRequestFromJSON(json) {
    return PatchedIdentificationStageRequestFromJSONTyped(json, false);
}
function PatchedIdentificationStageRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'] == null ? undefined : json['name'],
        'flowSet': json['flow_set'] == null ? undefined : (json['flow_set'].map(FlowSetRequest_1.FlowSetRequestFromJSON)),
        'userFields': json['user_fields'] == null ? undefined : (json['user_fields'].map(UserFieldsEnum_1.UserFieldsEnumFromJSON)),
        'passwordStage': json['password_stage'] == null ? undefined : json['password_stage'],
        'captchaStage': json['captcha_stage'] == null ? undefined : json['captcha_stage'],
        'caseInsensitiveMatching': json['case_insensitive_matching'] == null ? undefined : json['case_insensitive_matching'],
        'showMatchedUser': json['show_matched_user'] == null ? undefined : json['show_matched_user'],
        'enrollmentFlow': json['enrollment_flow'] == null ? undefined : json['enrollment_flow'],
        'recoveryFlow': json['recovery_flow'] == null ? undefined : json['recovery_flow'],
        'passwordlessFlow': json['passwordless_flow'] == null ? undefined : json['passwordless_flow'],
        'sources': json['sources'] == null ? undefined : json['sources'],
        'showSourceLabels': json['show_source_labels'] == null ? undefined : json['show_source_labels'],
        'pretendUserExists': json['pretend_user_exists'] == null ? undefined : json['pretend_user_exists'],
        'enableRememberMe': json['enable_remember_me'] == null ? undefined : json['enable_remember_me'],
    };
}
function PatchedIdentificationStageRequestToJSON(json) {
    return PatchedIdentificationStageRequestToJSONTyped(json, false);
}
function PatchedIdentificationStageRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'flow_set': value['flowSet'] == null ? undefined : (value['flowSet'].map(FlowSetRequest_1.FlowSetRequestToJSON)),
        'user_fields': value['userFields'] == null ? undefined : (value['userFields'].map(UserFieldsEnum_1.UserFieldsEnumToJSON)),
        'password_stage': value['passwordStage'],
        'captcha_stage': value['captchaStage'],
        'case_insensitive_matching': value['caseInsensitiveMatching'],
        'show_matched_user': value['showMatchedUser'],
        'enrollment_flow': value['enrollmentFlow'],
        'recovery_flow': value['recoveryFlow'],
        'passwordless_flow': value['passwordlessFlow'],
        'sources': value['sources'],
        'show_source_labels': value['showSourceLabels'],
        'pretend_user_exists': value['pretendUserExists'],
        'enable_remember_me': value['enableRememberMe'],
    };
}
//# sourceMappingURL=PatchedIdentificationStageRequest.js.map