UserPreferences class

https://docs.joinmastodon.org/entities/preferences/ Represents a user's preferences.

Annotations
  • @JsonSerializable()

Constructors

UserPreferences({required PostingVisibility defaultPostingVisibility, required bool isSensitiveByDefault, required Object? defaultLanguage, required MediaDefaults mediaDefaults, required bool expandSpoilersByDefault})
UserPreferences.fromJson(Map<String, dynamic> json)
factory

Properties

defaultLanguage Object?
Default language for new posts
final
defaultPostingVisibility PostingVisibility
Default visibility for new posts. Enumerated by PostingVisibility.
final
expandSpoilersByDefault bool
Whether CWs should be expanded by default
final
hashCode int
The hash code for this object.
no setterinherited
isSensitiveByDefault bool
Default sensitivity flag for new posts
final
mediaDefaults MediaDefaults
Whether media attachments should be automatically displayed or blurred/hidden. Enumerated by MediaDefaults.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited