toJson method
All notes as JSON.
Implementation
Map<String, Object?> toJson() => <String, Object?>{
"version": 1,
"updated": _updatedAt.toIso8601String(),
"notes": _notes.map((UMediaNote note) => note.toJson()).toList(),
if (_shapes.isNotEmpty) "shapes": _shapes.map((UDocShape shape) => shape.toJson()).toList(),
};