/* tslint:disable */
/* eslint-disable */
/**
 * OmsorgCore.Api
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

import { mapValues } from '../runtime';
/**
 * 
 * @export
 * @interface CreateUserRequest
 */
export interface CreateUserRequest {
    /**
     * 
     * @type {string}
     * @memberof CreateUserRequest
     */
    employeeId?: string;
    /**
     * 
     * @type {string}
     * @memberof CreateUserRequest
     */
    username?: string | null;
    /**
     * 
     * @type {string}
     * @memberof CreateUserRequest
     */
    roleId?: string;
    /**
     * 
     * @type {string}
     * @memberof CreateUserRequest
     */
    mode?: string | null;
    /**
     * 
     * @type {string}
     * @memberof CreateUserRequest
     */
    initialPassword?: string | null;
    /**
     * 
     * @type {number}
     * @memberof CreateUserRequest
     */
    pinValidityDays?: number | null;
}

/**
 * Check if a given object implements the CreateUserRequest interface.
 */
export function instanceOfCreateUserRequest(value: object): value is CreateUserRequest {
    return true;
}

export function CreateUserRequestFromJSON(json: any): CreateUserRequest {
    return CreateUserRequestFromJSONTyped(json, false);
}

export function CreateUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateUserRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'employeeId': json['employeeId'] == null ? undefined : json['employeeId'],
        'username': json['username'] == null ? undefined : json['username'],
        'roleId': json['roleId'] == null ? undefined : json['roleId'],
        'mode': json['mode'] == null ? undefined : json['mode'],
        'initialPassword': json['initialPassword'] == null ? undefined : json['initialPassword'],
        'pinValidityDays': json['pinValidityDays'] == null ? undefined : json['pinValidityDays'],
    };
}

export function CreateUserRequestToJSON(json: any): CreateUserRequest {
    return CreateUserRequestToJSONTyped(json, false);
}

export function CreateUserRequestToJSONTyped(value?: CreateUserRequest | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'employeeId': value['employeeId'],
        'username': value['username'],
        'roleId': value['roleId'],
        'mode': value['mode'],
        'initialPassword': value['initialPassword'],
        'pinValidityDays': value['pinValidityDays'],
    };
}

