"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.instanceOfIdentificationStage = instanceOfIdentificationStage;
exports.IdentificationStageFromJSON = IdentificationStageFromJSON;
exports.IdentificationStageFromJSONTyped = IdentificationStageFromJSONTyped;
exports.IdentificationStageToJSON = IdentificationStageToJSON;
exports.IdentificationStageToJSONTyped = IdentificationStageToJSONTyped;
const UserFieldsEnum_1 = require("./UserFieldsEnum");
const FlowSet_1 = require("./FlowSet");
/**
 * Check if a given object implements the IdentificationStage interface.
 */
function instanceOfIdentificationStage(value) {
    if (!('pk' in value) || value['pk'] === undefined)
        return false;
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('component' in value) || value['component'] === undefined)
        return false;
    if (!('verboseName' in value) || value['verboseName'] === undefined)
        return false;
    if (!('verboseNamePlural' in value) || value['verboseNamePlural'] === undefined)
        return false;
    if (!('metaModelName' in value) || value['metaModelName'] === undefined)
        return false;
    if (!('flowSet' in value) || value['flowSet'] === undefined)
        return false;
    return true;
}
function IdentificationStageFromJSON(json) {
    return IdentificationStageFromJSONTyped(json, false);
}
function IdentificationStageFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'pk': json['pk'],
        'name': json['name'],
        'component': json['component'],
        'verboseName': json['verbose_name'],
        'verboseNamePlural': json['verbose_name_plural'],
        'metaModelName': json['meta_model_name'],
        'flowSet': (json['flow_set'].map(FlowSet_1.FlowSetFromJSON)),
        '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'],
        'webauthnStage': json['webauthn_stage'] == null ? undefined : json['webauthn_stage'],
    };
}
function IdentificationStageToJSON(json) {
    return IdentificationStageToJSONTyped(json, false);
}
function IdentificationStageToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        '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'],
        'webauthn_stage': value['webauthnStage'],
    };
}
//# sourceMappingURL=IdentificationStage.js.map