toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'activity_id'] = this.activityId;
json[r'children_counts'] = this.childrenCounts;
if (this.createdAt != null) {
json[r'created_at'] = this.createdAt;
} else {
json[r'created_at'] = null;
}
json[r'data'] = this.data;
if (this.id != null) {
json[r'id'] = this.id;
} else {
json[r'id'] = null;
}
json[r'kind'] = this.kind;
json[r'latest_children'] = this.latestChildren;
json[r'own_children'] = this.ownChildren;
if (this.parent != null) {
json[r'parent'] = this.parent;
} else {
json[r'parent'] = null;
}
json[r'target_feeds'] = this.targetFeeds;
if (this.updatedAt != null) {
json[r'updated_at'] = this.updatedAt;
} else {
json[r'updated_at'] = null;
}
if (this.user != null) {
json[r'user'] = this.user;
} else {
json[r'user'] = null;
}
json[r'user_id'] = this.userId;
return json;
}