toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['type'] = this.type;
data['firebaseQR'] = this.firebaseQR;
data['paymentMethod'] = this.paymentMethod;
if (this.paymentMethodInfo != null) {
data['paymentMethodInfo'] = this.paymentMethodInfo!.toJson();
}
data['countryCode'] = this.countryCode;
data['currency'] = this.currency;
data['amount'] = this.amount;
data['commissionId'] = this.commissionId;
data['status'] = this.status!.toString();
data['error'] = this.error;
data['timestamp'] = this.timestamp;
data['transactionFriendlyId'] = this.transactionFriendlyId;
data['deliveryLocationId'] = this.deliveryLocationId;
data['fromShop'] = this.fromShop;
data['gateway'] = this.gateway;
return data;
}