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

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

export function EmployeeFacilityDistanceResponseFromJSON(json: any): EmployeeFacilityDistanceResponse {
    return EmployeeFacilityDistanceResponseFromJSONTyped(json, false);
}

export function EmployeeFacilityDistanceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmployeeFacilityDistanceResponse {
    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'],
        'employeeFirstName': json['employeeFirstName'] == null ? undefined : json['employeeFirstName'],
        'employeeLastName': json['employeeLastName'] == null ? undefined : json['employeeLastName'],
        'distanceKm': json['distanceKm'] == null ? undefined : json['distanceKm'],
    };
}

export function EmployeeFacilityDistanceResponseToJSON(json: any): EmployeeFacilityDistanceResponse {
    return EmployeeFacilityDistanceResponseToJSONTyped(json, false);
}

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

    return {
        
        'id': value['id'],
        'facilityId': value['facilityId'],
        'employeeId': value['employeeId'],
        'employeeFirstName': value['employeeFirstName'],
        'employeeLastName': value['employeeLastName'],
        'distanceKm': value['distanceKm'],
    };
}

