AdultContentPref constructor
- @JsonSerializable(includeIfNull: false)
const
AdultContentPref(
{ - @Default(appBskyActorDefsAdultContentPref) @JsonKey(name: r'$type') String $type,
- required bool enabled,
- @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;