ListItemView constructor

  1. @JsonSerializable(includeIfNull: false)
const ListItemView({
  1. @Default(appBskyGraphDefsListItemView) @JsonKey(name: r'$type') String $type,
  2. @AtUriConverter() required AtUri uri,
  3. @ProfileViewConverter() required ProfileView subject,
  4. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory ListItemView({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.graph.defs#listItemView`
  @Default(appBskyGraphDefsListItemView)
  @JsonKey(name: r'$type')
  String $type,
  @AtUriConverter() required AtUri uri,
  @ProfileViewConverter() required ProfileView subject,

  /// Contains unknown objects not defined in Lexicon.
  @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
}) = _ListItemView;