toJson method
Implementation
Map<String, dynamic> toJson() => {
'uiType': uiType.toJson(),
'storeId': storeId,
'paymentId': paymentId,
'orderName': orderName,
'totalAmount': totalAmount,
'channelKey': channelKey,
if (taxFreeAmount != null) 'taxFreeAmount': taxFreeAmount!,
if (vatAmount != null) 'vatAmount': vatAmount!,
if (customer != null) 'customer': customer!.toJson(),
if (noticeUrls != null) 'noticeUrls': noticeUrls!,
if (confirmUrl != null) 'confirmUrl': confirmUrl!,
'appScheme': appScheme,
if (isEscrow != null) 'isEscrow': isEscrow!,
if (products != null) 'products': products!.map((e) => e.toJson()).toList(),
if (isCulturalExpense != null) 'isCulturalExpense': isCulturalExpense!,
'currency': currency.toJson(),
if (locale != null) 'locale': locale!.toJson(),
if (customData != null) 'customData': customData!,
if (offerPeriod != null) 'offerPeriod': offerPeriod!.toJson(),
if (productType != null) 'productType': productType!.toJson(),
if (storeDetails != null) 'storeDetails': storeDetails!.toJson(),
if (bypass != null) 'bypass': bypass!.toJson(),
if (country != null) 'country': country!.toJson(),
if (shippingAddress != null) 'shippingAddress': shippingAddress!.toJson(),
if (promotionGroupId != null) 'promotionGroupId': promotionGroupId!,
if (promotionIds != null) 'promotionIds': promotionIds!,
};