Preferences constructor

  1. @JsonSerializable(includeIfNull: false)
const Preferences({
  1. @Default(appBskyActorDefsPreferences) @JsonKey(name: r'$type') String $type,
  2. @UPreferenceConverter() required List<UPreference> preferences,
  3. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory Preferences({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.actor.defs#preferences`
  @Default(appBskyActorDefsPreferences) @JsonKey(name: r'$type') String $type,
  @UPreferenceConverter() required List<UPreference> preferences,

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