toJson method
Generates a map representing the Reaction
.
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['messageId'] = this.messageId;
data['reaction'] = this.reaction;
data['uid'] = this.uid;
data['reactedAt'] = this.reactedAt;
if (this.reactedBy != null) {
data['reactedBy'] = this.reactedBy!.toJson();
}
return data;
}