toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (actualDeliveryTime != null)
        'actualDeliveryTime': actualDeliveryTime!,
      if (carrierName != null) 'carrierName': carrierName!,
      if (carrierServiceName != null)
        'carrierServiceName': carrierServiceName!,
      if (earliestDeliveryPromiseTime != null)
        'earliestDeliveryPromiseTime': earliestDeliveryPromiseTime!,
      if (latestDeliveryPromiseTime != null)
        'latestDeliveryPromiseTime': latestDeliveryPromiseTime!,
      if (originPostalCode != null) 'originPostalCode': originPostalCode!,
      if (originRegionCode != null) 'originRegionCode': originRegionCode!,
      if (shipmentId != null) 'shipmentId': shipmentId!,
      if (shippedTime != null) 'shippedTime': shippedTime!,
      if (shippingStatus != null) 'shippingStatus': shippingStatus!,
      if (trackingId != null) 'trackingId': trackingId!,
    };