LocalUserSettings constructor

  1. @ForceUtcDateTime()
  2. @ForceUtcDateTimeNullable()
  3. @JsonSerializable(fieldRename: FieldRename.snake)
const LocalUserSettings({
  1. required int id,
  2. required int personId,
  3. String? email,
  4. required bool showNsfw,
  5. required String theme,
  6. @JsonKey(fromJson: sortTypeFromIndex, toJson: sortTypeToIndex) required SortType defaultSortType,
  7. @JsonKey(fromJson: postListingTypeFromIndex, toJson: postListingTypeToIndex) required PostListingType defaultListingType,
  8. required String lang,
  9. required bool showAvatars,
  10. required bool showScores,
  11. required bool sendNotificationsToEmail,
  12. required bool showReadPosts,
  13. required bool showBotAccounts,
  14. required bool showNewPostNotifs,
  15. required bool emailVerified,
  16. required bool acceptedApplication,
  17. required String instanceHost,
})

Implementation

@ForceUtcDateTime()
@ForceUtcDateTimeNullable()
@JsonSerializable(fieldRename: FieldRename.snake)
const factory LocalUserSettings({
  required int id,
  required int personId,
  String? email,
  required bool showNsfw,
  required String theme,
  @JsonKey(fromJson: sortTypeFromIndex, toJson: sortTypeToIndex)
      required SortType defaultSortType,
  @JsonKey(fromJson: postListingTypeFromIndex, toJson: postListingTypeToIndex)
      required PostListingType defaultListingType,
  required String lang,
  required bool showAvatars,
  required bool showScores,
  required bool sendNotificationsToEmail,
  required bool showReadPosts,
  required bool showBotAccounts,
  required bool showNewPostNotifs,
  required bool emailVerified,
  required bool acceptedApplication,
  required String instanceHost,
}) = _LocalUserSettings;