toJson method

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

Converts an InlineQueryResultVenue object to a JSON map

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    'type': type.value,
    'latitude': latitude,
    'longitude': longitude,
    'title': title,
    'address': address,
    'foursquare_id': foursquareId,
    'foursquare_type': foursquareType,
    'google_place_id': googlePlaceId,
    'google_place_type': googlePlaceType,
    'reply_markup': replyMarkup?.toJson(),
    'input_message_content': inputMessageContent?.toJson(),
    'thumbnail_url': thumbnailUrl,
    'thumbnail_width': thumbnailWidth,
    'thumbnail_height': thumbnailHeight,
    'id': id,
  }..removeWhere(_nullFilter);
}