/* 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 TrashEmployeeResponse
 */
export interface TrashEmployeeResponse {
    /**
     * 
     * @type {string}
     * @memberof TrashEmployeeResponse
     */
    id?: string;
    /**
     * 
     * @type {string}
     * @memberof TrashEmployeeResponse
     */
    firstName?: string | null;
    /**
     * 
     * @type {string}
     * @memberof TrashEmployeeResponse
     */
    lastName?: string | null;
    /**
     * 
     * @type {Date}
     * @memberof TrashEmployeeResponse
     */
    deletedAt?: Date | null;
}

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

export function TrashEmployeeResponseFromJSON(json: any): TrashEmployeeResponse {
    return TrashEmployeeResponseFromJSONTyped(json, false);
}

export function TrashEmployeeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrashEmployeeResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'id': json['id'] == null ? undefined : json['id'],
        'firstName': json['firstName'] == null ? undefined : json['firstName'],
        'lastName': json['lastName'] == null ? undefined : json['lastName'],
        'deletedAt': json['deletedAt'] == null ? undefined : (new Date(json['deletedAt'])),
    };
}

export function TrashEmployeeResponseToJSON(json: any): TrashEmployeeResponse {
    return TrashEmployeeResponseToJSONTyped(json, false);
}

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

    return {
        
        'id': value['id'],
        'firstName': value['firstName'],
        'lastName': value['lastName'],
        'deletedAt': value['deletedAt'] === null ? null : ((value['deletedAt'] as any)?.toISOString()),
    };
}

