Preferences constructor
- @JsonSerializable(includeIfNull: false)
const
Preferences(
{ - @Default(appBskyActorDefsPreferences) @JsonKey(name: r'$type') String $type,
- @UPreferenceConverter() required List<UPreference> preferences,
- @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;