toJson method
Implementation
Map<String, dynamic> toJson() => {
'requestId': requestId,
'customerId': customerId,
if (predefinedAmount != null)
'predefinedAmount': predefinedAmount?.toJson(),
'defaultUser': defaultUser?.toJson(),
'redirectUrl': redirectUrl,
'isWebView': isWebView,
if (isiFrame != null) 'isiFrame': isiFrame,
'transactionType': transactionType.toString().split('.').last,
'userFlow': userFlow?.toJson(),
};