toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts an InputVenueMessageContent object to a JSON map

Implementation

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