Add bookmark request
This commit is contained in:
29
lib/models/data/post_bookmark.dart
Normal file
29
lib/models/data/post_bookmark.dart
Normal file
@@ -0,0 +1,29 @@
|
||||
class PostBookmark {
|
||||
final String url;
|
||||
final String title;
|
||||
final String description;
|
||||
final bool isArchived;
|
||||
final bool unread;
|
||||
final bool shared;
|
||||
final List<String> tagNames;
|
||||
|
||||
const PostBookmark({
|
||||
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() => {
|
||||
"url": url,
|
||||
"title": title,
|
||||
"description": description,
|
||||
"isArchived": isArchived,
|
||||
"unread": unread,
|
||||
"shared": shared,
|
||||
"tagNames": tagNames,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user