ContentLabelPref constructor

  1. @JsonSerializable(includeIfNull: false)
const ContentLabelPref({
  1. @Default(appBskyActorDefsContentLabelPref) @JsonKey(name: r'$type') String $type,
  2. String? labelerDid,
  3. required String label,
  4. @UContentLabelPrefVisibilityConverter() required UContentLabelPrefVisibility visibility,
  5. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

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

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

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