toJson method
Converts a ChosenInlineResult to a Map for JSON encoding.
Implementation
Map<String, dynamic> toJson() {
return {
'result_id': resultId,
'from': from.toJson(),
'location': location?.toJson(),
'inline_message_id': inlineMessageId,
'query': query,
}..removeWhere(_nullFilter);
}