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

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

export function TrashFacilityContactResponseFromJSON(json: any): TrashFacilityContactResponse {
    return TrashFacilityContactResponseFromJSONTyped(json, false);
}

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

export function TrashFacilityContactResponseToJSON(json: any): TrashFacilityContactResponse {
    return TrashFacilityContactResponseToJSONTyped(json, false);
}

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

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

