SaveUserSettings constructor

  1. @JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)
const SaveUserSettings({
  1. bool? showNsfw,
  2. String? theme,
  3. @JsonKey(fromJson: sortTypeFromIndex, toJson: sortTypeToIndex) SortType? defaultSortType,
  4. @JsonKey(fromJson: postListingTypeFromIndex, toJson: postListingTypeToIndex) PostListingType? defaultListingType,
  5. String? lang,
  6. String? avatar,
  7. String? banner,
  8. String? displayName,
  9. String? email,
  10. String? bio,
  11. String? matrixUserId,
  12. bool? showAvatars,
  13. bool? showScores,
  14. bool? sendNotificationsToEmail,
  15. bool? showReadPosts,
  16. bool? botAccount,
  17. bool? showBotAccounts,
  18. bool? showNewPostNotifs,
  19. 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;