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

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

export function CreateEmployeeFacilityDistanceRequestFromJSON(json: any): CreateEmployeeFacilityDistanceRequest {
    return CreateEmployeeFacilityDistanceRequestFromJSONTyped(json, false);
}

export function CreateEmployeeFacilityDistanceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateEmployeeFacilityDistanceRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'employeeId': json['employeeId'] == null ? undefined : json['employeeId'],
        'distanceKm': json['distanceKm'] == null ? undefined : json['distanceKm'],
    };
}

export function CreateEmployeeFacilityDistanceRequestToJSON(json: any): CreateEmployeeFacilityDistanceRequest {
    return CreateEmployeeFacilityDistanceRequestToJSONTyped(json, false);
}

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

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

