BookmarkView constructor

  1. @JsonSerializable(includeIfNull: false)
const BookmarkView({
  1. @Default('app.bsky.bookmark.defs#bookmarkView') String $type,
  2. @RepoStrongRefConverter() required RepoStrongRef subject,
  3. DateTime? createdAt,
  4. @UBookmarkViewItemConverter() required UBookmarkViewItem item,
  5. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory BookmarkView({
  @Default('app.bsky.bookmark.defs#bookmarkView') String $type,

  /// A strong ref to the bookmarked record.
  @RepoStrongRefConverter() required RepoStrongRef subject,
  DateTime? createdAt,
  @UBookmarkViewItemConverter() required UBookmarkViewItem item,

  Map<String, dynamic>? $unknown,
}) = _BookmarkView;