PlaceMenuSubcats.fromJson constructor

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

Implementation

PlaceMenuSubcats.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["catName"] is String) this.catName = json["catName"];
  if (json["items"] is List)
    this.items = json["items"] == null
        ? null
        : (json["items"] as List).map((e) => PlaceMenuItems.fromJson(e)).toList();
}