toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = this.id;
json[r'noteId'] = this.noteId;
if (this.parentId != null) {
json[r'parentId'] = this.parentId;
} else {
json[r'parentId'] = null;
}
json[r'type'] = this.type;
json[r'content'] = this.content;
json[r'properties'] = this.properties;
json[r'position'] = this.position;
json[r'hasChildren'] = this.hasChildren;
json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
json[r'updatedAt'] = this.updatedAt.toUtc().toIso8601String();
return json;
}