toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.isClosed != null) {
json[r'isClosed'] = this.isClosed;
} else {
json[r'isClosed'] = null;
}
json[r'accessibleByGroupIds'] = this.accessibleByGroupIds;
json[r'rootCommentCount'] = this.rootCommentCount;
json[r'commentCount'] = this.commentCount;
json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
json[r'title'] = this.title;
if (this.url != null) {
json[r'url'] = this.url;
} else {
json[r'url'] = null;
}
json[r'urlId'] = this.urlId;
json[r'id'] = this.id;
return json;
}