User constructor

User({
  1. required String id,
  2. String? username,
  3. String? password,
  4. required String firstName,
  5. required String? surname,
  6. required String name,
  7. required String baseUrl,
  8. String? gender,
  9. String? jobTitle,
  10. String? shortName,
  11. String? displayName,
  12. String? code,
  13. String? created,
  14. String? lastUpdated,
  15. String? teiSearchOrganisationUnits,
  16. List<UserOrganisationUnit>? organisationUnits,
  17. List<UserAuthority>? authorities,
  18. List<UserRole>? roles,
  19. dynamic dataViewOrganisationUnits,
  20. String? programs,
  21. String? dataSets,
  22. String? token,
  23. String? tokenType,
  24. String? refreshToken,
  25. int? tokenExpiry,
  26. String? authType,
  27. String? phoneNumber,
  28. List<UserGroup>? userGroups,
  29. required bool isLoggedIn,
  30. required bool dirty,
})

Implementation

User(
    {required String id,
    this.username,
    this.password,
    required this.firstName,
    required this.surname,
    required String name,
    required this.baseUrl,
    this.gender,
    this.jobTitle,
    String? shortName,
    String? displayName,
    String? code,
    String? created,
    String? lastUpdated,
    this.teiSearchOrganisationUnits,
    this.organisationUnits,
    this.authorities,
    this.roles,
    this.dataViewOrganisationUnits,
    this.programs,
    this.dataSets,
    this.token,
    this.tokenType,
    this.refreshToken,
    this.tokenExpiry,
    this.authType,
    this.phoneNumber,
    this.userGroups,
    required this.isLoggedIn,
    required bool dirty})
    : super(
          id: id,
          name: name,
          dirty: dirty,
          created: created,
          lastUpdated: lastUpdated);