toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data["id"] = id;
data["menuTitle"] = menuTitle;
data["pictureUrl"] = pictureUrl;
data["oobrPlaceName"] = oobrPlaceName;
data["qrCode"] = qrCode;
if (maincats != null) data["maincats"] = maincats?.map((e) => e.toJson()).toList();
return data;
}