toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.comment != null) {
json[r'comment'] = this.comment;
} else {
json[r'comment'] = null;
}
if (this.commentReaction != null) {
json[r'comment_reaction'] = this.commentReaction;
} else {
json[r'comment_reaction'] = null;
}
json[r'custom_activity_types'] = this.customActivityTypes;
if (this.follow != null) {
json[r'follow'] = this.follow;
} else {
json[r'follow'] = null;
}
if (this.mention != null) {
json[r'mention'] = this.mention;
} else {
json[r'mention'] = null;
}
if (this.reaction != null) {
json[r'reaction'] = this.reaction;
} else {
json[r'reaction'] = null;
}
return json;
}