toJson method
Creates a json from the object
Implementation
Map toJson() {
return {
'type': type,
'id': id,
'latitude': latitude,
'longitude': longitude,
'title': title,
'horizontal_accuracy': horizontalAccuracy,
'live_period': livePeriod,
'heading': heading,
'proximity_alert_radius': proximityAlertRadius,
'reply_markup': replyMarkup,
'input_message_content': inputMessageContent,
'thumb_url': thumbUrl,
'thumb_width': thumbWidth,
'thumb_height': thumbHeight,
}..removeWhere((_, v) => v == null);
}