PickupDelivery constructor

PickupDelivery({
  1. required String id,
  2. required int locationIndex,
  3. String? description,
  4. int? service,
})

Constructs an PickupDelivery object.

id - Indicate the ID of this shipment pickup step. An error will be reported if there are duplicate IDs for multiple shipment pick-ups. The IDs are case-sensitive. Please note id is mandatory when using the shipments attribute. locationIndex - Indicate the index of location for this shipment delivery. The index references the locations present in the location array. The valid range of value is [0, length of location array) description - An optional description of the pickup or delivery step. service - Provide the time duration, in seconds, needed to complete the shipment delivery. Default value is 0.

Implementation

PickupDelivery({
  required this.id,
  required this.locationIndex,
  this.description,
  this.service,
});