30 lines
653 B
Dart
30 lines
653 B
Dart
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,
|
|
};
|
|
}
|