"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.0-rc5
 * 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.instanceOfPatchedUserWriteStageRequest = instanceOfPatchedUserWriteStageRequest;
exports.PatchedUserWriteStageRequestFromJSON = PatchedUserWriteStageRequestFromJSON;
exports.PatchedUserWriteStageRequestFromJSONTyped = PatchedUserWriteStageRequestFromJSONTyped;
exports.PatchedUserWriteStageRequestToJSON = PatchedUserWriteStageRequestToJSON;
exports.PatchedUserWriteStageRequestToJSONTyped = PatchedUserWriteStageRequestToJSONTyped;
const UserTypeEnum_1 = require("./UserTypeEnum");
const UserCreationModeEnum_1 = require("./UserCreationModeEnum");
/**
 * Check if a given object implements the PatchedUserWriteStageRequest interface.
 */
function instanceOfPatchedUserWriteStageRequest(value) {
    return true;
}
function PatchedUserWriteStageRequestFromJSON(json) {
    return PatchedUserWriteStageRequestFromJSONTyped(json, false);
}
function PatchedUserWriteStageRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'] == null ? undefined : json['name'],
        '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 PatchedUserWriteStageRequestToJSON(json) {
    return PatchedUserWriteStageRequestToJSONTyped(json, false);
}
function PatchedUserWriteStageRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        '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=PatchedUserWriteStageRequest.js.map