toJson method
Implementation
@override
Map<String, dynamic> toJson() {
if (_originalDoc != null) return _originalDoc!;
Map<String, dynamic> jsonObject = {};
jsonObject['id'] = id;
jsonObject['format'] = format;
jsonObject['path'] = path.toString();
return jsonObject;
}