toJson method

Map<String, dynamic> toJson()

Converts a Venue object to JSON object

Implementation

Map<String, dynamic> toJson() {
  return {
    'location': location.toJson(),
    'title': title,
    'address': address,
    'foursquare_id': foursquareId,
    'foursquare_type': foursquareType,
    'google_place_id': googlePlaceId,
    'google_place_type': googlePlaceType,
  }..removeWhere(_nullFilter);
}