toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'orderId': orderId,
    'amount': amount,
    'currency': currency,
    'cardDetails': cardDetails.toJson(),
    if (billingAddress != null) 'billingAddress': billingAddress!.toJson(),
    if (customer != null) 'customer': customer!.toJson(),
    if (description != null) 'description': description,
    'require3DS': require3DS,
  };
}