Task constructor

Task({
  1. JSObject attributes,
  2. String name,
  3. JSArray<VehicleJourneySegment> remainingVehicleJourneySegments,
  4. String status,
  5. String type,
  6. Date? estimatedCompletionTime,
  7. VehicleLocationUpdate? latestVehicleLocationUpdate,
  8. String? outcome,
  9. LatLngLiteral? outcomeLocation,
  10. String? outcomeLocationSource,
  11. Date? outcomeTime,
  12. LatLngLiteral? plannedLocation,
  13. TimeWindow? targetTimeWindow,
  14. String? trackingId,
  15. String? vehicleId,
})

Implementation

external Task({
  JSObject /*Object<[string]>*/ attributes,
  String name,
  JSArray<VehicleJourneySegment> remainingVehicleJourneySegments,
  String status,
  String type,
  Date? estimatedCompletionTime,
  VehicleLocationUpdate? latestVehicleLocationUpdate,
  String? outcome,
  LatLngLiteral? outcomeLocation,
  String? outcomeLocationSource,
  Date? outcomeTime,
  LatLngLiteral? plannedLocation,
  TimeWindow? targetTimeWindow,
  String? trackingId,
  String? vehicleId,
});