Added mark as read or unread

This commit is contained in:
Juan Gilsanz Polo
2024-02-25 21:09:54 +01:00
parent 776ec9f392
commit 175963883f
12 changed files with 145 additions and 18 deletions

View File

@@ -0,0 +1,37 @@
class SetBookmarkData {
final String url;
final String title;
final String description;
final bool isArchived;
final bool unread;
final bool shared;
final String tagNames;
const SetBookmarkData({
required this.url,
required this.title,
required this.description,
required this.isArchived,
required this.unread,
required this.shared,
required this.tagNames,
});
Map<String, dynamic> toJson() {
Map<String, dynamic> ret = {
"url": url,
"title": title,
"description": description,
"is_archived": isArchived,
"unread": unread,
"shared": shared,
};
if (tagNames != "") {
ret = {
...ret,
"tag_names": tagNames,
};
}
return ret;
}
}