Reaction constructor
Reaction({})
Constructor used for json serialization
Implementation
Reaction({
this.messageId,
DateTime? createdAt,
required this.type,
this.user,
String? userId,
this.score = 0,
this.extraData = const {},
}) : userId = userId ?? user?.id,
createdAt = createdAt ?? DateTime.now();