EmbedExternalViewLivestream constructor
const
EmbedExternalViewLivestream({
- @Default.new('app.bsky.embed.external#viewLivestream') String $type,
- required String uri,
- required String title,
- required String description,
- @JsonKey.new(toJson: iso8601) DateTime? createdAt,
- @JsonKey.new(toJson: iso8601) DateTime? updatedAt,
- @LabelConverter() List<
Label> ? labels, - @RepoStrongRefConverter() List<
RepoStrongRef> ? associatedRefs, - @ProfileViewBasicConverter() List<
ProfileViewBasic> ? associatedProfiles, - String? image,
- required bool active,
- @JsonKey.new(toJson: iso8601) DateTime? startedAt,
- @JsonKey.new(toJson: iso8601) DateTime? endedAt,
- Map<
String, dynamic> ? $unknown,
Implementation
@JsonSerializable(includeIfNull: false)
const factory EmbedExternalViewLivestream({
@Default('app.bsky.embed.external#viewLivestream') 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,
String? image,
/// True if the livestream is currently active at the time this view is served, false if it has ended.
required bool active,
@JsonKey(toJson: iso8601) DateTime? startedAt,
@JsonKey(toJson: iso8601) DateTime? endedAt,
Map<String, dynamic>? $unknown,
}) = _EmbedExternalViewLivestream;