AdultContentPref constructor

  1. @JsonSerializable(includeIfNull: false)
const AdultContentPref({
  1. @Default(appBskyActorDefsAdultContentPref) @JsonKey(name: r'$type') String $type,
  2. required bool enabled,
  3. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory AdultContentPref({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.actor.defs#adultContentPref`
  @Default(appBskyActorDefsAdultContentPref)
  @JsonKey(name: r'$type')
  String $type,
  required bool enabled,

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