FeedGeneratorView constructor
const
FeedGeneratorView(
{ - @typeKey @Default(appBskyFeedDefsGeneratorView) String type,
- @AtUriConverter() required AtUri uri,
- required String cid,
- String? did,
- @JsonKey(name: 'creator') required Actor createdBy,
- required String displayName,
- String? description,
- List<Facet>? descriptionFacets,
- String? avatar,
- @Default(0) int likeCount,
- @Default(false) bool acceptsInteractions,
- List<Label>? labels,
- @Default(defaultFeedGeneratorViewer) FeedGeneratorViewer viewer,
- required DateTime indexedAt,
})
Implementation
@jsonSerializable
const factory FeedGeneratorView({
@typeKey @Default(appBskyFeedDefsGeneratorView) String type,
@AtUriConverter() required AtUri uri,
required String cid,
String? did,
@JsonKey(name: 'creator') required Actor createdBy,
required String displayName,
String? description,
List<Facet>? descriptionFacets,
String? avatar,
@Default(0) int likeCount,
@Default(false) bool acceptsInteractions,
List<Label>? labels,
@Default(defaultFeedGeneratorViewer) FeedGeneratorViewer viewer,
required DateTime indexedAt,
}) = _FeedGeneratorView;