DeclaredAgePref constructor

  1. @JsonSerializable.new(includeIfNull: false)
const DeclaredAgePref({
  1. @Default.new('app.bsky.actor.defs#declaredAgePref') String $type,
  2. bool? isOverAge13,
  3. bool? isOverAge16,
  4. bool? isOverAge18,
  5. Map<String, dynamic>? $unknown,
})

Implementation

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

  /// Indicates if the user has declared that they are over 13 years of age.
  bool? isOverAge13,

  /// Indicates if the user has declared that they are over 16 years of age.
  bool? isOverAge16,

  /// Indicates if the user has declared that they are over 18 years of age.
  bool? isOverAge18,

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