toJson method
Implementation
Map<String, dynamic> toJson() {
Map<String, dynamic> json = {
"merchantname": this.merchantName,
"merchantcode": this.merchantCode,
"partnercode": this.partnerCode,
"amount": this.amount,
"orderid": this.orderId,
"orderlabel": this.orderLabel,
"partner": this.partner,
"fee": this.fee,
"isTestMode": isTestMode,
"merchantnamelabel": merchantNameLabel
};
if (Platform.isIOS) {
json["appScheme"] = appScheme;
}
if (description != null) {
json["description"] = description;
}
if (username != null) {
json["username"] = username;
}
if (extra != null) {
json["extra"] = extra;
}
return json;
}