toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = this.id;
json[r'noteId'] = this.noteId;
if (this.parentCommentId != null) {
json[r'parentCommentId'] = this.parentCommentId;
} else {
json[r'parentCommentId'] = null;
}
if (this.blockId != null) {
json[r'blockId'] = this.blockId;
} else {
json[r'blockId'] = null;
}
json[r'body'] = this.body;
json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
json[r'updatedAt'] = this.updatedAt.toUtc().toIso8601String();
json[r'author'] = this.author;
return json;
}