toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.actor != null) {
json[r'actor'] = this.actor;
} else {
json[r'actor'] = null;
}
if (this.foreignId != null) {
json[r'foreign_id'] = this.foreignId;
} else {
json[r'foreign_id'] = null;
}
if (this.id != null) {
json[r'id'] = this.id;
} else {
json[r'id'] = null;
}
json[r'latest_reactions'] = this.latestReactions;
if (this.object != null) {
json[r'object'] = this.object;
} else {
json[r'object'] = null;
}
if (this.origin != null) {
json[r'origin'] = this.origin;
} else {
json[r'origin'] = null;
}
json[r'own_reactions'] = this.ownReactions;
json[r'reaction_counts'] = this.reactionCounts;
if (this.score != null) {
json[r'score'] = this.score;
} else {
json[r'score'] = null;
}
if (this.target != null) {
json[r'target'] = this.target;
} else {
json[r'target'] = null;
}
if (this.time != null) {
json[r'time'] = this.time;
} else {
json[r'time'] = null;
}
json[r'to'] = this.to;
if (this.verb != null) {
json[r'verb'] = this.verb;
} else {
json[r'verb'] = null;
}
return json;
}