toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (deliveryDetails != null) 'deliveryDetails': deliveryDetails!,
      if (enableOrderinvoices != null)
        'enableOrderinvoices': enableOrderinvoices!,
      if (kind != null) 'kind': kind!,
      if (lineItems != null) 'lineItems': lineItems!,
      if (notificationMode != null) 'notificationMode': notificationMode!,
      if (pickupDetails != null) 'pickupDetails': pickupDetails!,
      if (predefinedBillingAddress != null)
        'predefinedBillingAddress': predefinedBillingAddress!,
      if (predefinedDeliveryAddress != null)
        'predefinedDeliveryAddress': predefinedDeliveryAddress!,
      if (predefinedEmail != null) 'predefinedEmail': predefinedEmail!,
      if (predefinedPickupDetails != null)
        'predefinedPickupDetails': predefinedPickupDetails!,
      if (promotions != null) 'promotions': promotions!,
      if (shippingCost != null) 'shippingCost': shippingCost!,
      if (shippingOption != null) 'shippingOption': shippingOption!,
    };