PreparedInlineMessage.fromJson constructor

PreparedInlineMessage.fromJson(
  1. Map<String, dynamic> json
)

Parses a PreparedInlineMessage from TDLib JSON.

Implementation

factory PreparedInlineMessage.fromJson(Map<String, dynamic> json) =>
    PreparedInlineMessage(
      inlineQueryId: _readInt(json['inline_query_id']),
      result: _readObject(json['result'], InlineQueryResult.fromJson),
      chatTypes: _readObject(json['chat_types'], TargetChatTypes.fromJson),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );