LabelerView constructor

  1. @JsonSerializable(includeIfNull: false)
const LabelerView({
  1. @Default(appBskyLabelerDefsLabelerView) @JsonKey(name: r'$type') String $type,
  2. @AtUriConverter() required AtUri uri,
  3. required String cid,
  4. @ProfileViewConverter() required ProfileView creator,
  5. @Default(0) int likeCount,
  6. @LabelerViewerStateConverter() @Default(LabelerViewerState()) LabelerViewerState viewer,
  7. required DateTime indexedAt,
  8. @LabelConverter() List<Label>? labels,
  9. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory LabelerView({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.labeler.defs#labelerView`
  @Default(appBskyLabelerDefsLabelerView)
  @JsonKey(name: r'$type')
  String $type,
  @AtUriConverter() required AtUri uri,
  required String cid,
  @ProfileViewConverter() required ProfileView creator,
  @Default(0) int likeCount,
  @LabelerViewerStateConverter()
  @Default(LabelerViewerState())
  LabelerViewerState viewer,
  required DateTime indexedAt,
  @LabelConverter() List<Label>? labels,

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