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

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

export function TrashFacilityResponseFromJSON(json: any): TrashFacilityResponse {
    return TrashFacilityResponseFromJSONTyped(json, false);
}

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

export function TrashFacilityResponseToJSON(json: any): TrashFacilityResponse {
    return TrashFacilityResponseToJSONTyped(json, false);
}

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

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

