toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (acknowledged != null) 'acknowledged': acknowledged!,
      if (annotations != null) 'annotations': annotations!,
      if (billingAddress != null) 'billingAddress': billingAddress!,
      if (customer != null) 'customer': customer!,
      if (deliveryDetails != null) 'deliveryDetails': deliveryDetails!,
      if (id != null) 'id': id!,
      if (kind != null) 'kind': kind!,
      if (lineItems != null) 'lineItems': lineItems!,
      if (merchantId != null) 'merchantId': merchantId!,
      if (merchantOrderId != null) 'merchantOrderId': merchantOrderId!,
      if (netPriceAmount != null) 'netPriceAmount': netPriceAmount!,
      if (netTaxAmount != null) 'netTaxAmount': netTaxAmount!,
      if (paymentStatus != null) 'paymentStatus': paymentStatus!,
      if (pickupDetails != null) 'pickupDetails': pickupDetails!,
      if (placedDate != null) 'placedDate': placedDate!,
      if (promotions != null) 'promotions': promotions!,
      if (refunds != null) 'refunds': refunds!,
      if (shipments != null) 'shipments': shipments!,
      if (shippingCost != null) 'shippingCost': shippingCost!,
      if (shippingCostTax != null) 'shippingCostTax': shippingCostTax!,
      if (status != null) 'status': status!,
      if (taxCollector != null) 'taxCollector': taxCollector!,
    };