added classes for collections and bookmarks

This commit is contained in:
2025-09-18 21:09:28 +02:00
parent ef9a369df1
commit 603060fe58
2 changed files with 25 additions and 0 deletions

12
lib/model/collection.dart Normal file
View File

@@ -0,0 +1,12 @@
import 'package:hive/hive.dart';
class Collection extends HiveObject {
Collection({required this.name});
factory Collection.fromJson(Map<String, dynamic> json) =>
Collection(name: json['name'] as String);
String name;
Map<String, dynamic> toJson() => {'name': name};
}