Vehicle constructor

Vehicle({
  1. JSObject attributes,
  2. String name,
  3. VehicleNavigationStatus navigationStatus,
  4. num remainingDistanceMeters,
  5. VehicleState vehicleState,
  6. VehicleType vehicleType,
  7. TripWaypoint? currentRouteSegmentEndPoint,
  8. Date? currentRouteSegmentVersion,
  9. JSArray<JSString>? currentTrips,
  10. Date? etaToFirstWaypoint,
  11. VehicleLocationUpdate? latestLocation,
  12. num? maximumCapacity,
  13. JSArray<TripType>? supportedTripTypes,
  14. JSArray<TripWaypoint>? waypoints,
  15. 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,
});