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

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

export function TrashAbsenceResponseFromJSON(json: any): TrashAbsenceResponse {
    return TrashAbsenceResponseFromJSONTyped(json, false);
}

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

export function TrashAbsenceResponseToJSON(json: any): TrashAbsenceResponse {
    return TrashAbsenceResponseToJSONTyped(json, false);
}

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

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

