SaveUserSettings constructor
- @JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)
const
SaveUserSettings(
{ - bool? showNsfw,
- String? theme,
- @JsonKey(fromJson: sortTypeFromIndex, toJson: sortTypeToIndex) SortType? defaultSortType,
- @JsonKey(fromJson: postListingTypeFromIndex, toJson: postListingTypeToIndex) PostListingType? defaultListingType,
- String? lang,
- String? avatar,
- String? banner,
- String? displayName,
- String? email,
- String? bio,
- String? matrixUserId,
- bool? showAvatars,
- bool? showScores,
- bool? sendNotificationsToEmail,
- bool? showReadPosts,
- bool? botAccount,
- bool? showBotAccounts,
- bool? showNewPostNotifs,
- required String auth,
})
Implementation
@JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)
const factory SaveUserSettings({
bool? showNsfw,
String? theme,
@JsonKey(fromJson: sortTypeFromIndex, toJson: sortTypeToIndex)
SortType? defaultSortType,
@JsonKey(fromJson: postListingTypeFromIndex, toJson: postListingTypeToIndex)
PostListingType? defaultListingType,
String? lang,
String? avatar,
String? banner,
String? displayName,
String? email,
String? bio,
String? matrixUserId,
bool? showAvatars,
bool? showScores,
bool? sendNotificationsToEmail,
bool? showReadPosts,
bool? botAccount,
bool? showBotAccounts,
bool? showNewPostNotifs,
required String auth,
}) = _SaveUserSettings;