MenuModel.fromJson constructor Null safety
Implementation
factory MenuModel.fromJson(Map<String, dynamic> json) => MenuModel(
length: json["length"],
items: json["items"] == null
? null
: List<Item>.from(json["items"].map((x) => Item.fromJson(x))),
);