fromJson static method
Implementation
static MessageInteractionInfo? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return MessageInteractionInfo(
viewCount: (json['view_count'] as int?) ?? 0,
forwardCount: (json['forward_count'] as int?) ?? 0,
replyInfo: MessageReplyInfo.fromJson(tdMapFromJson(json['reply_info'])),
reactions: MessageReactions.fromJson(tdMapFromJson(json['reactions'])),
);
}