import 'package:freezed_annotation/freezed_annotation.dart'; import 'ink_stroke.dart'; part 'note.freezed.dart'; part 'note.g.dart'; @freezed abstract class Note with _$Note { const factory Note({ required String id, @Default('Untitled') String title, @Default([]) List strokes, required DateTime createdAt, required DateTime updatedAt, @Default([]) List tags, }) = _Note; factory Note.fromJson(Map json) => _$NoteFromJson(json); }