toJson method
Converts a MessageReactionUpdated object to JSON object.
Implementation
Map<String, dynamic> toJson() {
return {
'chat': chat.toJson(),
'message_id': messageId,
'user': user?.toJson(),
'actor_chat': actorChat?.toJson(),
'date': date,
'old_reaction': oldReaction.map((e) => e.toJson()).toList(),
'new_reaction': newReaction.map((e) => e.toJson()).toList(),
}..removeWhere(_nullFilter);
}