toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (carrier != null) 'carrier': carrier!,
      if (deliveryDate != null) 'deliveryDate': deliveryDate!,
      if (lastPickupDate != null) 'lastPickupDate': lastPickupDate!,
      if (operationId != null) 'operationId': operationId!,
      if (readyPickupDate != null) 'readyPickupDate': readyPickupDate!,
      if (scheduledDeliveryDetails != null)
        'scheduledDeliveryDetails': scheduledDeliveryDetails!,
      if (shipmentId != null) 'shipmentId': shipmentId!,
      if (status != null) 'status': status!,
      if (trackingId != null) 'trackingId': trackingId!,
      if (undeliveredDate != null) 'undeliveredDate': undeliveredDate!,
    };