/* 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 UpdateEmployeeRequest
 */
export interface UpdateEmployeeRequest {
    /**
     * 
     * @type {string}
     * @memberof UpdateEmployeeRequest
     */
    firstName?: string | null;
    /**
     * 
     * @type {string}
     * @memberof UpdateEmployeeRequest
     */
    lastName?: string | null;
    /**
     * 
     * @type {string}
     * @memberof UpdateEmployeeRequest
     */
    status?: string | null;
    /**
     * 
     * @type {Date}
     * @memberof UpdateEmployeeRequest
     */
    dateOfBirth?: Date | null;
    /**
     * 
     * @type {string}
     * @memberof UpdateEmployeeRequest
     */
    street?: string | null;
    /**
     * 
     * @type {string}
     * @memberof UpdateEmployeeRequest
     */
    postalCode?: string | null;
    /**
     * 
     * @type {string}
     * @memberof UpdateEmployeeRequest
     */
    city?: string | null;
    /**
     * 
     * @type {string}
     * @memberof UpdateEmployeeRequest
     */
    country?: string | null;
    /**
     * 
     * @type {string}
     * @memberof UpdateEmployeeRequest
     */
    phoneNumber?: string | null;
    /**
     * 
     * @type {string}
     * @memberof UpdateEmployeeRequest
     */
    email?: string | null;
    /**
     * 
     * @type {Date}
     * @memberof UpdateEmployeeRequest
     */
    entryDate?: Date | null;
    /**
     * 
     * @type {Date}
     * @memberof UpdateEmployeeRequest
     */
    exitDate?: Date | null;
    /**
     * 
     * @type {string}
     * @memberof UpdateEmployeeRequest
     */
    emergencyContactName?: string | null;
    /**
     * 
     * @type {string}
     * @memberof UpdateEmployeeRequest
     */
    emergencyContactPhone?: string | null;
    /**
     * 
     * @type {string}
     * @memberof UpdateEmployeeRequest
     */
    emergencyContactRelation?: string | null;
    /**
     * 
     * @type {string}
     * @memberof UpdateEmployeeRequest
     */
    employmentType?: string | null;
    /**
     * 
     * @type {string}
     * @memberof UpdateEmployeeRequest
     */
    qualification?: string | null;
    /**
     * 
     * @type {string}
     * @memberof UpdateEmployeeRequest
     */
    avatarFileName?: string | null;
}

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

export function UpdateEmployeeRequestFromJSON(json: any): UpdateEmployeeRequest {
    return UpdateEmployeeRequestFromJSONTyped(json, false);
}

export function UpdateEmployeeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateEmployeeRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'firstName': json['firstName'] == null ? undefined : json['firstName'],
        'lastName': json['lastName'] == null ? undefined : json['lastName'],
        'status': json['status'] == null ? undefined : json['status'],
        'dateOfBirth': json['dateOfBirth'] == null ? undefined : (new Date(json['dateOfBirth'])),
        'street': json['street'] == null ? undefined : json['street'],
        'postalCode': json['postalCode'] == null ? undefined : json['postalCode'],
        'city': json['city'] == null ? undefined : json['city'],
        'country': json['country'] == null ? undefined : json['country'],
        'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
        'email': json['email'] == null ? undefined : json['email'],
        'entryDate': json['entryDate'] == null ? undefined : (new Date(json['entryDate'])),
        'exitDate': json['exitDate'] == null ? undefined : (new Date(json['exitDate'])),
        'emergencyContactName': json['emergencyContactName'] == null ? undefined : json['emergencyContactName'],
        'emergencyContactPhone': json['emergencyContactPhone'] == null ? undefined : json['emergencyContactPhone'],
        'emergencyContactRelation': json['emergencyContactRelation'] == null ? undefined : json['emergencyContactRelation'],
        'employmentType': json['employmentType'] == null ? undefined : json['employmentType'],
        'qualification': json['qualification'] == null ? undefined : json['qualification'],
        'avatarFileName': json['avatarFileName'] == null ? undefined : json['avatarFileName'],
    };
}

export function UpdateEmployeeRequestToJSON(json: any): UpdateEmployeeRequest {
    return UpdateEmployeeRequestToJSONTyped(json, false);
}

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

    return {
        
        'firstName': value['firstName'],
        'lastName': value['lastName'],
        'status': value['status'],
        'dateOfBirth': value['dateOfBirth'] === null ? null : ((value['dateOfBirth'] as any)?.toISOString().substring(0,10)),
        'street': value['street'],
        'postalCode': value['postalCode'],
        'city': value['city'],
        'country': value['country'],
        'phoneNumber': value['phoneNumber'],
        'email': value['email'],
        'entryDate': value['entryDate'] === null ? null : ((value['entryDate'] as any)?.toISOString().substring(0,10)),
        'exitDate': value['exitDate'] === null ? null : ((value['exitDate'] as any)?.toISOString().substring(0,10)),
        'emergencyContactName': value['emergencyContactName'],
        'emergencyContactPhone': value['emergencyContactPhone'],
        'emergencyContactRelation': value['emergencyContactRelation'],
        'employmentType': value['employmentType'],
        'qualification': value['qualification'],
        'avatarFileName': value['avatarFileName'],
    };
}

