toJson method
Converts this request object into a JSON-encodable format.
Implementation
Map<String, dynamic> toJson() => {
'paymentSummaryItems':
paymentSummaryItems.map((item) => item.toJson()).toList(),
'currencyCode': currencyCode,
'displayName': displayName,
'countryCode': countryCode,
'merchantIdentifier': merchantIdentifier,
'supportedNetworks': supportedNetworks.map((e) => e.rawValue).toList(),
};