User constructor

User(
  1. {@JsonKey(name: 'userid') required int id,
  2. required String username,
  3. required String firstname,
  4. required String lastname,
  5. @Default(-1) @JsonKey(name: 'capabilities') int capabilitiesBitMask,
  6. @Default("") @JsonKey(name: "theme") String themeName,
  7. @Default("") @JsonKey(name: 'lang') String language,
  8. @Default("") @JsonKey(name: 'profileimageurl') String profileImageUrl,
  9. @Default(-1) @JsonKey(name: 'planid') int planId,
  10. @Default("") @JsonKey(name: 'colorblindness') String colorBlindnessString,
  11. @Default(1) @JsonKey(name: 'displaytaskcount') int displayTaskCountInt,
  12. @Default("") String vintage}
)

A user using the application.

Implementation

factory User