Converts this object to TDLib JSON.
@override Map<String, dynamic> toJson() => { '@type': CONSTRUCTOR, 'inline_query_id': inlineQueryId.toString(), 'result': result.toJson(), 'chat_types': chatTypes.toJson(), };