toJson method
Converts a MessageReactionCountUpdated object to JSON object.
Implementation
Map<String, dynamic> toJson() {
return {
'chat': chat.toJson(),
'message_id': messageId,
'date': date,
'reactions': reactions.map((e) => e.toJson()).toList(),
};
}