UpdateMessageInteractionInfo.fromJson constructor

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

Parses a UpdateMessageInteractionInfo from TDLib JSON.

Implementation

factory UpdateMessageInteractionInfo.fromJson(Map<String, dynamic> json) =>
    UpdateMessageInteractionInfo(
      chatId: _readInt(json['chat_id']),
      messageId: _readInt(json['message_id']),
      interactionInfo: _readOptional(
          json['interaction_info'], MessageInteractionInfo.fromJson),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );