toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> _data = <String, dynamic>{};
  _data["id"] = id;
  _data["uuid"] = uuid;
  _data["slug"] = slug;
  _data["description"] = description;
  _data["facebook"] = facebook;
  _data["twitter"] = twitter;
  _data["instagram"] = instagram;
  _data["formattedAddress"] = formattedAddress;
  _data["createdAt"] = createdAt;
  _data["updatedAt"] = updatedAt;
  _data["status"] = status;
  _data["ratings"] = ratings;
  if (logo != null) {
    _data["logo"] = logo?.toJson();
  }
  if (subscriptionOwner != null) {
    _data["subscriptionOwner"] = subscriptionOwner?.toJson();
  }
  if (city != null) {
    _data["city"] = city?.toJson();
  }
  return _data;
}