MessageInteractionInfo.fromJson constructor

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

Parse from a json

Implementation

factory MessageInteractionInfo.fromJson(Map<String, dynamic> json) =>
    MessageInteractionInfo(
      viewCount: json['view_count'],
      forwardCount: json['forward_count'],
      replyInfo: json['reply_info'] == null
          ? null
          : MessageReplyInfo.fromJson(json['reply_info']),
      reactions: List<MessageReaction>.from((json['reactions'] ?? [])
          .map((item) => MessageReaction.fromJson(item))
          .toList()),
    );