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

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

export function CreateMyFacilityDistanceRequestFromJSON(json: any): CreateMyFacilityDistanceRequest {
    return CreateMyFacilityDistanceRequestFromJSONTyped(json, false);
}

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

export function CreateMyFacilityDistanceRequestToJSON(json: any): CreateMyFacilityDistanceRequest {
    return CreateMyFacilityDistanceRequestToJSONTyped(json, false);
}

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

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

