EmbedExternalViewGallery constructor

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

Implementation

@JsonSerializable(includeIfNull: false)
const factory EmbedExternalViewGallery({
  @Default('app.bsky.embed.external#viewGallery') String $type,
  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,
  int? likeCount,
  @ProfileViewBasicConverter() List<ProfileViewBasic>? likers,

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