AccountPreferences class

Annotations
  • @freezed

Constructors

AccountPreferences({@JsonKey(name: 'posting:default:visibility') required Visibility defaultVisibility, @JsonKey(name: 'posting:default:sensitive') required bool isDefaultSensitive, @JsonKey(name: 'posting:default:language') required Language defaultLanguage, @JsonKey(name: 'reading:expand:media') required DisplayMediaSetting expandMediaSetting, @JsonKey(name: 'reading:expand:spoilers') required bool hasExpandSpoilers})
const
factory
AccountPreferences.fromJson(Map<String, Object?> json)
factory

Properties

copyWith → $AccountPreferencesCopyWith<AccountPreferences>
no setterinherited
defaultLanguage Language
posting:default:language
no setterinherited
defaultVisibility Visibility
posting:default:visibility
no setterinherited
expandMediaSetting DisplayMediaSetting
reading:expand:media
no setterinherited
hasExpandSpoilers bool
reading:expand:spoilers
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isDefaultSensitive bool
posting:default:sensitive
no setterinherited
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>
inherited
toString() String
A string representation of this object.
inherited

Operators

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