toJson method
Creates a json from the object
Implementation
Map toJson() {
return {
'type': type,
'id': id,
'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,
'input_message_content': inputMessageContent,
'thumb_url': thumbUrl,
'thumb_width': thumbWidth,
'thumb_height': thumbHeight,
}..removeWhere((_, v) => v == null);
}