LabelerPolicies constructor

  1. @JsonSerializable(includeIfNull: false)
const LabelerPolicies({
  1. @Default(appBskyLabelerDefsLabelerPolicies) @JsonKey(name: r'$type') String $type,
  2. @ULabelValueConverter() required List<ULabelValue> labelValues,
  3. @LabelValueDefinitionConverter() List<LabelValueDefinition>? labelValueDefinitions,
  4. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory LabelerPolicies({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.labeler.defs#labelerPolicies`
  @Default(appBskyLabelerDefsLabelerPolicies)
  @JsonKey(name: r'$type')
  String $type,

  /// The label values which this labeler publishes. May include global
  /// or custom labels.
  @ULabelValueConverter() required List<ULabelValue> labelValues,

  /// Label values created by this labeler and scoped exclusively to
  /// it. Labels defined here will override global label definitions
  /// for this labeler.
  @LabelValueDefinitionConverter()
  List<LabelValueDefinition>? labelValueDefinitions,

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