toJson method
Converts an InlineQueryResultLocation object to a JSON map
Implementation
@override
Map<String, dynamic> toJson() {
return {
'type': type.value,
'latitude': latitude,
'longitude': longitude,
'title': title,
'horizontal_accuracy': horizontalAccuracy,
'live_period': livePeriod,
'heading': heading,
'proximity_alert_radius': proximityAlertRadius,
'reply_markup': replyMarkup?.toJson(),
'input_message_content': inputMessageContent?.toJson(),
'thumbnail_url': thumbnailUrl,
'thumbnail_width': thumbnailWidth,
'thumbnail_height': thumbnailHeight,
'id': id,
}..removeWhere(_nullFilter);
}