toJson method
Implementation
Map<String, dynamic> toJson(double amount, {String? orderId}) {
final map = <String, dynamic>{};
map['subDomainId'] = subDomainId;
map['accessKey'] = accessKey;
map['secretKey'] = secretKey;
map['amount'] = amount;
map['customerProfile'] = customerProfile.toJson();
map["autoContrast"] = autoContrast;
map["showReceipt"] = showReceipt;
map['country'] = country.value;
map['allowCardScan'] = allowCardScan;
if (theme != null) {
map['theme'] = theme?.toJson();
}
map['detailedResponse'] = detailedResponse;
if (orderId != null) {
map['orderId'] = orderId;
}
map['showCustomerForm'] = showCustomerForm;
return map;
}