PlaceMenuItems.fromJson constructor

PlaceMenuItems.fromJson(
  1. Map<String, dynamic> json
)

Implementation

PlaceMenuItems.fromJson(Map<String, dynamic> json) {
  if (json["id"] is String) this.id = json["id"];
  if (json["order"] is int) this.order = json["order"];
  if (json["name"] is String) this.name = json["name"];
  if (json["description"] is String) this.description = json["description"];
  if (json["pictureUrl"] is String) this.pictureUrl = json["pictureUrl"];
  if (json["price"] is double) this.price = json["price"];
  if (json["promoPrice"] is double) this.promoPrice = json["promoPrice"];
  if (json["currency"] is String) this.currency = json["currency"];
  if (json["orderOnline"] is int) this.orderOnline = json["orderOnline"];
  if (json["quickOrderInPlace"] is int) this.quickOrderInPlace = json["quickOrderInPlace"];
  if (json["hasOptions"] is int) this.hasOptions = json["hasOptions"];
  if (json["qrCode"] is String) this.qrCode = json["qrCode"];
}