toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.cardId != null) data['cardId'] = this.cardId;
if (this.paymentMethodId != null) data['paymentMethodId'] = this.paymentMethodId;
if (this.tokenId != null) data['tokenId'] = this.tokenId;
data['amount'] = this.amount;
data['purchaseType'] = this.purchaseType;
data['currency'] = this.currency;
data['qrCode'] = this.qrCode;
data['commissionId'] = this.commissionId;
data['deliveryLocationId'] = this.deliveryLocationId;
data['proUniqueId'] = this.proUniqueId;
data['shopUniqueId'] = this.shopUniqueId;
data['ticketUniqueId'] = this.ticketUniqueId;
return data;
}