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

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

export function TrashTimeEntryResponseFromJSON(json: any): TrashTimeEntryResponse {
    return TrashTimeEntryResponseFromJSONTyped(json, false);
}

export function TrashTimeEntryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrashTimeEntryResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'id': json['id'] == null ? undefined : json['id'],
        'date': json['date'] == null ? undefined : (new Date(json['date'])),
        'deletedAt': json['deletedAt'] == null ? undefined : (new Date(json['deletedAt'])),
    };
}

export function TrashTimeEntryResponseToJSON(json: any): TrashTimeEntryResponse {
    return TrashTimeEntryResponseToJSONTyped(json, false);
}

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

    return {
        
        'id': value['id'],
        'date': value['date'] == null ? undefined : ((value['date']).toISOString().substring(0,10)),
        'deletedAt': value['deletedAt'] === null ? null : ((value['deletedAt'] as any)?.toISOString()),
    };
}

