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

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

export function TrashAssignmentResponseFromJSON(json: any): TrashAssignmentResponse {
    return TrashAssignmentResponseFromJSONTyped(json, false);
}

export function TrashAssignmentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrashAssignmentResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'id': json['id'] == null ? undefined : json['id'],
        'employeeFirstName': json['employeeFirstName'] == null ? undefined : json['employeeFirstName'],
        'employeeLastName': json['employeeLastName'] == null ? undefined : json['employeeLastName'],
        'deletedAt': json['deletedAt'] == null ? undefined : (new Date(json['deletedAt'])),
    };
}

export function TrashAssignmentResponseToJSON(json: any): TrashAssignmentResponse {
    return TrashAssignmentResponseToJSONTyped(json, false);
}

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

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

