PaymentOrder.fromJson constructor
PaymentOrder.fromJson(
- Map<String, dynamic> json
)
Implementation
PaymentOrder.fromJson(Map<String, dynamic> json) {
id = json["id"];
uuid = json["uuid"];
orderNumber = json["orderNumber"];
price = json["price"];
countryCode = json["countryCode"];
createdAt = json["createdAt"];
vat = json["VAT"];
proDisplayName = json["proDisplayName"];
proUniqueId = json["proUniqueId"];
userDisplayName = json["userDisplayName"];
userUniqueId = json["userUniqueId"];
paymentStatusLabel = json["paymentStatusLabel"];
deliveryAddressId = json["deliveryAddressId"];
items = json["items"] == null
? null
: (json["items"] as List).map((e) => OrderItems.fromJson(e)).toList();
deliveryAddress = json["deliveryAddress"] == null
? null
: OrderDeliveryAddress.fromJson(json["deliveryAddress"]);
}