"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.instanceOfUserWriteStageRequest = instanceOfUserWriteStageRequest;
exports.UserWriteStageRequestFromJSON = UserWriteStageRequestFromJSON;
exports.UserWriteStageRequestFromJSONTyped = UserWriteStageRequestFromJSONTyped;
exports.UserWriteStageRequestToJSON = UserWriteStageRequestToJSON;
exports.UserWriteStageRequestToJSONTyped = UserWriteStageRequestToJSONTyped;
const UserTypeEnum_1 = require("./UserTypeEnum");
const FlowSetRequest_1 = require("./FlowSetRequest");
const UserCreationModeEnum_1 = require("./UserCreationModeEnum");
/**
 * Check if a given object implements the UserWriteStageRequest interface.
 */
function instanceOfUserWriteStageRequest(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    return true;
}
function UserWriteStageRequestFromJSON(json) {
    return UserWriteStageRequestFromJSONTyped(json, false);
}
function UserWriteStageRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'],
        'flowSet': json['flow_set'] == null ? undefined : (json['flow_set'].map(FlowSetRequest_1.FlowSetRequestFromJSON)),
        'userCreationMode': json['user_creation_mode'] == null ? undefined : (0, UserCreationModeEnum_1.UserCreationModeEnumFromJSON)(json['user_creation_mode']),
        'createUsersAsInactive': json['create_users_as_inactive'] == null ? undefined : json['create_users_as_inactive'],
        'createUsersGroup': json['create_users_group'] == null ? undefined : json['create_users_group'],
        'userType': json['user_type'] == null ? undefined : (0, UserTypeEnum_1.UserTypeEnumFromJSON)(json['user_type']),
        'userPathTemplate': json['user_path_template'] == null ? undefined : json['user_path_template'],
    };
}
function UserWriteStageRequestToJSON(json) {
    return UserWriteStageRequestToJSONTyped(json, false);
}
function UserWriteStageRequestToJSONTyped(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_creation_mode': (0, UserCreationModeEnum_1.UserCreationModeEnumToJSON)(value['userCreationMode']),
        'create_users_as_inactive': value['createUsersAsInactive'],
        'create_users_group': value['createUsersGroup'],
        'user_type': (0, UserTypeEnum_1.UserTypeEnumToJSON)(value['userType']),
        'user_path_template': value['userPathTemplate'],
    };
}
//# sourceMappingURL=UserWriteStageRequest.js.map