MessageInteractionInfo.fromJson constructor

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

Parses a MessageInteractionInfo from TDLib JSON.

Implementation

factory MessageInteractionInfo.fromJson(Map<String, dynamic> json) =>
    MessageInteractionInfo(
      viewCount: _readInt(json['view_count']),
      forwardCount: _readInt(json['forward_count']),
      replyInfo: _readOptional(json['reply_info'], MessageReplyInfo.fromJson),
      reactions: _readOptional(json['reactions'], MessageReactions.fromJson),
    );