created models

This commit is contained in:
marcoabat committed 2023-08-05 02:21:33 +02:00
1 parent 93a14f0dd2
commit 223303191a
2 files changed
+26

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
import 'listitem.dart';
class Checklist {
final int id;
final String ownerId;
String title;
String description;
final DateTime createdTime;
List<Item> items;
Checklist(this.id, this.ownerId, this.title, this.description,
this.createdTime, List<Item>? items)
: items = items ?? [];
}
+12
View File
@@ -0,0 +1,12 @@
class Item {
final int id;
final String ownerId;
String title;
String description;
final DateTime createdTime;
List<String> checkedBy;
Item(this.id, this.ownerId, this.title, this.description, this.createdTime,
List<String>? checkedBy)
: checkedBy = checkedBy ?? [];
}