MessageReactionCountUpdated.fromJson constructor

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

Creates a MessageReactionCountUpdated object from JSON object.

Implementation

factory MessageReactionCountUpdated.fromJson(Map<String, dynamic> json) {
  return MessageReactionCountUpdated(
    chat: Chat.fromJson(json['chat']),
    messageId: json['message_id'],
    date: json['date'],
    reactions: (json['reactions'] as List)
        .map((e) => ReactionCount.fromJson(e))
        .toList(),
  );
}