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

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

export function MyFacilityDistanceResponseFromJSON(json: any): MyFacilityDistanceResponse {
    return MyFacilityDistanceResponseFromJSONTyped(json, false);
}

export function MyFacilityDistanceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MyFacilityDistanceResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'id': json['id'] == null ? undefined : json['id'],
        'facilityId': json['facilityId'] == null ? undefined : json['facilityId'],
        'facilityName': json['facilityName'] == null ? undefined : json['facilityName'],
        'distanceKm': json['distanceKm'] == null ? undefined : json['distanceKm'],
    };
}

export function MyFacilityDistanceResponseToJSON(json: any): MyFacilityDistanceResponse {
    return MyFacilityDistanceResponseToJSONTyped(json, false);
}

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

    return {
        
        'id': value['id'],
        'facilityId': value['facilityId'],
        'facilityName': value['facilityName'],
        'distanceKm': value['distanceKm'],
    };
}

