InlineQueryResults.fromJson constructor
Parses a InlineQueryResults from TDLib JSON.
Implementation
factory InlineQueryResults.fromJson(Map<String, dynamic> json) =>
InlineQueryResults(
inlineQueryId: _readInt(json['inline_query_id']),
button:
_readOptional(json['button'], InlineQueryResultsButton.fromJson),
results: _readList<InlineQueryResult>(
json['results'], (e) => _readObject(e, InlineQueryResult.fromJson)),
nextOffset: _readString(json['next_offset']),
extra: json['@extra'],
clientId: _readClientId(json['@client_id']),
);