toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data["id"] = this.id;
  data["type"] = this.type;
  data["userUniqueId"] = this.userUniqueId;
  data["proUniqueId"] = this.proUniqueId;
  data["qrCode"] = this.qrCode;
  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;
  data["error"] = this.error;
  data["timestamp"] = this.timestamp;
  data["purchasedAt"] = this.purchasedAt;
  data["deliveryLocationId"] = this.deliveryLocationId;
  data["transactionFriendlyId"] = this.transactionFriendlyId;
  data["fromShop"] = this.fromShop;
  data["gateway"] = this.gateway;
  data["orderId"] = this.orderId;
  data["eventUniqueId"] = this.eventUniqueId;
  return data;
}