LabelerViewDetailed constructor

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

Implementation

@JsonSerializable(includeIfNull: false)
const factory LabelerViewDetailed({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.labeler.defs#labelerViewDetailed`
  @Default(appBskyLabelerDefsLabelerViewDetailed)
  @JsonKey(name: r'$type')
  String $type,
  @AtUriConverter() required AtUri uri,
  required String cid,
  @ProfileViewConverter() required ProfileView creator,
  @LabelerPoliciesConverter() required LabelerPolicies policies,
  @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,
}) = _LabelerViewDetailed;