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

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

export function TrashEmployeeFacilityDistanceResponseFromJSON(json: any): TrashEmployeeFacilityDistanceResponse {
    return TrashEmployeeFacilityDistanceResponseFromJSONTyped(json, false);
}

export function TrashEmployeeFacilityDistanceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrashEmployeeFacilityDistanceResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'id': json['id'] == null ? undefined : json['id'],
        'facilityId': json['facilityId'] == null ? undefined : json['facilityId'],
        'employeeId': json['employeeId'] == null ? undefined : json['employeeId'],
        'distanceKm': json['distanceKm'] == null ? undefined : json['distanceKm'],
        'deletedAt': json['deletedAt'] == null ? undefined : (new Date(json['deletedAt'])),
    };
}

export function TrashEmployeeFacilityDistanceResponseToJSON(json: any): TrashEmployeeFacilityDistanceResponse {
    return TrashEmployeeFacilityDistanceResponseToJSONTyped(json, false);
}

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

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

