LabelerView constructor
- @JsonSerializable(includeIfNull: false)
const
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,
- @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;