Order.fromJsonMap constructor
Order.fromJsonMap(
- Map json
Implementation
Order.fromJsonMap(Map json) {
id = json["id"];
customerId = json["cust_id"];
stallId = json["stall_id"];
dateTime = json["datetime"];
code = json["code"];
status = _parseJson(json["status"]);
stall = _Stall.fromJson(json["stall"]);
total = json["total"] is int ? (json["total"] as int).toDouble() : json["total"];
items = (json["items"] as List).map((item) => OrderItem.fromJsonMap(item)).toList();
customer = _Customer.fromJson(json["customer"]);
}