FeedGeneratorView constructor

  1. @jsonSerializable
const FeedGeneratorView({
  1. @typeKey @Default(appBskyFeedDefsGeneratorView) String type,
  2. @AtUriConverter() required AtUri uri,
  3. required String cid,
  4. String? did,
  5. @JsonKey(name: 'creator') required Actor createdBy,
  6. required String displayName,
  7. String? description,
  8. List<Facet>? descriptionFacets,
  9. String? avatar,
  10. @Default(0) int likeCount,
  11. @Default(false) bool acceptsInteractions,
  12. List<Label>? labels,
  13. @Default(defaultFeedGeneratorViewer) FeedGeneratorViewer viewer,
  14. 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;