toJson method
Converts this request to TDLib JSON, tagged with extra if given.
Implementation
@override
Map<String, dynamic> toJson([dynamic extra]) => {
'@type': CONSTRUCTOR,
'inline_query_id': inlineQueryId.toString(),
'is_personal': isPersonal,
'button': button?.toJson(),
'results': [for (final e in results) e.toJson()],
'cache_time': cacheTime,
'next_offset': nextOffset,
if (extra != null) '@extra': extra,
};