Vehicle constructor
Vehicle({
- JSObject attributes,
- String name,
- num remainingDistanceMeters,
- VehicleState vehicleState,
- VehicleType vehicleType,
- TripWaypoint? currentRouteSegmentEndPoint,
- Date? currentRouteSegmentVersion,
- JSArray<
JSString> ? currentTrips, - Date? etaToFirstWaypoint,
- VehicleLocationUpdate? latestLocation,
- num? maximumCapacity,
- JSArray<
TripType> ? supportedTripTypes, - JSArray<
TripWaypoint> ? waypoints, - Date? waypointsVersion,
Implementation
external Vehicle({
JSObject /*Object<[string]>*/ attributes,
String name,
VehicleNavigationStatus navigationStatus,
num remainingDistanceMeters,
VehicleState vehicleState,
VehicleType vehicleType,
TripWaypoint? currentRouteSegmentEndPoint,
Date? currentRouteSegmentVersion,
JSArray<JSString>? currentTrips,
Date? etaToFirstWaypoint,
VehicleLocationUpdate? latestLocation,
num? maximumCapacity,
JSArray<TripType>? supportedTripTypes,
JSArray<TripWaypoint>? waypoints,
Date? waypointsVersion,
});