ContentLabelPref constructor

  1. @JsonSerializable(includeIfNull: false)
const ContentLabelPref({
  1. @Default('app.bsky.actor.defs#contentLabelPref') String $type,
  2. String? labelerDid,
  3. required String label,
  4. @ContentLabelPrefVisibilityConverter() required ContentLabelPrefVisibility visibility,
  5. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory ContentLabelPref({
  @Default('app.bsky.actor.defs#contentLabelPref') String $type,

  /// Which labeler does this preference apply to? If undefined, applies globally.
  String? labelerDid,
  required String label,
  @ContentLabelPrefVisibilityConverter()
  required ContentLabelPrefVisibility visibility,

  Map<String, dynamic>? $unknown,
}) = _ContentLabelPref;