EmbedExternalViewGallery constructor

const EmbedExternalViewGallery({
  1. @Default.new('app.bsky.embed.external#viewGallery') String $type,
  2. String? providerId,
  3. required String uri,
  4. required String title,
  5. required String description,
  6. @JsonKey.new(toJson: iso8601) DateTime? createdAt,
  7. @JsonKey.new(toJson: iso8601) DateTime? updatedAt,
  8. @LabelConverter() List<Label>? labels,
  9. @RepoStrongRefConverter() List<RepoStrongRef>? associatedRefs,
  10. @ProfileViewBasicConverter() List<ProfileViewBasic>? associatedProfiles,
  11. @UEmbedExternalViewGalleryItemsConverter() required List<UEmbedExternalViewGalleryItems> items,
  12. int? photoCount,
  13. @EmbedExternalViewGalleryViewerStateConverter() EmbedExternalViewGalleryViewerState? viewer,
  14. int? likeCount,
  15. @ProfileViewBasicConverter() List<ProfileViewBasic>? likers,
  16. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory EmbedExternalViewGallery({
  @Default('app.bsky.embed.external#viewGallery') String $type,

  /// Best-effort provider domain for cosmetic attribution, such as grain.social. Not verified provenance.
  String? providerId,
  required String uri,
  required String title,
  required String description,
  @JsonKey(toJson: iso8601) DateTime? createdAt,
  @JsonKey(toJson: iso8601) DateTime? updatedAt,
  @LabelConverter() List<Label>? labels,
  @RepoStrongRefConverter() List<RepoStrongRef>? associatedRefs,
  @ProfileViewBasicConverter() List<ProfileViewBasic>? associatedProfiles,
  @UEmbedExternalViewGalleryItemsConverter()
  required List<UEmbedExternalViewGalleryItems> items,

  /// Total number of gallery item backlinks, independent of the items included in this view.
  int? photoCount,
  @EmbedExternalViewGalleryViewerStateConverter()
  EmbedExternalViewGalleryViewerState? viewer,
  int? likeCount,
  @ProfileViewBasicConverter() List<ProfileViewBasic>? likers,

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