import { FunctionImportRequestBuilder , DeSerializers , transformReturnValueForEntity , DefaultDeSerializers , defaultDeSerializers , FunctionImportParameter } from '@sap-cloud-sdk/odata-v4' ; import { microsoftODataServiceSampleTrippinInMemoryModelsService } from './service' ; import { Airports } from './Airports' ; import { AirportsApi } from './AirportsApi' ; /**
 * Type of the parameters to be passed to [[getNearestAirport]].
 */ export interface GetNearestAirportParameters < DeSerializersT extends DeSerializers > { /**
     * Lat.
     */ lat : number ; /**
     * Lon.
     */ lon : number ; } param parameters returns export function getNearestAirport < DeSerializersT extends DeSerializers = DefaultDeSerializers > ( parameters , deSerializers = defaultDeSerializers as any ) { const params = { lat : new FunctionImportParameter ( 'lat' , 'Edm.Double' , parameters . lat ) , lon : new FunctionImportParameter ( 'lon' , 'Edm.Double' , parameters . lon ) } ; return new FunctionImportRequestBuilder ( 'V4/(S(duh2c3dgb1c5lzc0bqwgyekc))/TripPinServiceRW/' , 'GetNearestAirport' , data => transformReturnValueForEntity ( data , microsoftODataServiceSampleTrippinInMemoryModelsService ( deSerializers ) . airportsApi ) , params , deSerializers ) ; } export const functionImports = { getNearestAirport } ;