toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data["id"] = this.id;
  data["name"] = this.name;
  data["description"] = this.description;
  data["subtitle"] = this.subtitle;
  data["pictureUrl"] = this.pictureUrl;
  data["globalNote"] = this.globalNote;
  data["lat"] = this.lat;
  data["lng"] = this.lng;
  data["street1"] = this.street1;
  data["street2"] = this.street2;
  data["zip"] = this.zip;
  data["city"] = this.city;
  data["state"] = this.state;
  data["country"] = this.country;
  data["catName"] = this.catName;
  data["colorCode"] = this.colorCode;
  data["colorCode2"] = this.colorCode2;
  data["catThumbnail"] = this.catThumbnail;
  if (this.filters != null) data["filters"] = this.filters?.map((e) => e.toJson()).toList();
  return data;
}