toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'products': (products?.map((e) => e.toJson()))?.toList(),
  'status': status?.index,
  'currency': currency,
  'orderID': orderID,
  'orderValue': orderValue,
  'returningOrNewCustomer': returningOrNewCustomer,
  'returnValue': returnValue,
  'cancellationValue': cancellationValue,
  'couponValue': couponValue,
  'paymentMethod': paymentMethod,
  'shippingServiceProvider': shippingServiceProvider,
  'shippingSpeed': shippingSpeed,
  'shippingCost': shippingCost,
  'markUp': markUp,
  'orderStatus': orderStatus,
  'customParameters': customParameters?.map(
    (key, value) => MapEntry(key.toString(), value),
  ),
};