PaymentRequestModel.fromJson constructor
PaymentRequestModel.fromJson(
- Map<String, dynamic> json
)
Implementation
PaymentRequestModel.fromJson(Map<String, dynamic> json) {
purchaseType = json["purchaseType"];
proUniqueId = json["proUniqueId"];
amount = json["amount"];
currency = json["currency"];
commissionId = json["commissionId"];
deliveryLocationId = json["deliveryLocationId"];
qrCode = json["qrCode"];
fromShop = json["fromShop"];
orderId = json["orderId"];
shopUniqueId = json["shopUniqueId"];
ticketUniqueId = json["ticketUniqueId"];
productRefs = json["productRefs"] == null
? null
: (json["productRefs"] as List)
.map((e) => PaymentRequestProductRefs.fromJson(e))
.toList();
tokenType = json["tokenType"];
priceByUnit = json["priceByUnit"];
countryCode = json["countryCode"];
cardId = json["cardId"];
platformId = json["platformId"];
label = json["label"];
}