User class
- Inheritance
- Annotations
-
- @AnnotationReflectable
- @Entity(tableName: 'user', apiResourceName: 'users')
Constructors
-
User({required String id, String? username, String? password, required String firstName, required String? surname, required String name, required String baseUrl, String? gender, String? jobTitle, String? shortName, String? displayName, String? code, String? created, String? lastUpdated, String? teiSearchOrganisationUnits, List<
UserOrganisationUnit> ? organisationUnits, List<UserAuthority> ? authorities, List<UserRole> ? roles, dynamic dataViewOrganisationUnits, String? programs, String? dataSets, String? token, String? tokenType, String? refreshToken, int? tokenExpiry, String? authType, String? phoneNumber, List<UserGroup> ? userGroups, String? tokenExpiresAt, required bool isLoggedIn, required bool dirty}) -
User.fromApi(Map<
String, dynamic> jsonData) -
factory
-
User.fromJson(Map<
String, dynamic> jsonData) -
factory
Properties
-
getter/setter pair
- authType → String?
-
final
- baseUrl → String
-
final
- code → String?
-
finalinherited
- created ↔ String?
-
getter/setter pairinherited
- dataSets → String?
-
final
- dataViewOrganisationUnits → dynamic
-
final
- dirty ↔ bool
-
getter/setter pairinherited
- displayName → String?
-
finalinherited
- firstName → String
-
final
- gender → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String?
-
getter/setter pairinherited
- isLoggedIn ↔ bool
-
getter/setter pair
- jobTitle ↔ String?
-
getter/setter pair
- lastUpdated ↔ String?
-
getter/setter pairinherited
- name ↔ String?
-
getter/setter pairinherited
-
organisationUnits
↔ List<
UserOrganisationUnit> ? -
getter/setter pair
- password → String?
-
final
- phoneNumber → String?
-
final
- programs → String?
-
final
- refreshToken → String?
-
final
-
roles
↔ List<
UserRole> ? -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shortName → String?
-
finalinherited
- skipDateUpdate ↔ bool?
-
getter/setter pairinherited
- surname → String?
-
final
- teiSearchOrganisationUnits → String?
-
final
- token → String?
-
final
- tokenExpiresAt → String?
-
final
- tokenExpiry → int?
-
final
- tokenType → String?
-
final
- translation → Translation?
-
no setterinherited
- translations ↔ dynamic
-
getter/setter pairinherited
-
userGroups
↔ List<
UserGroup> ? -
getter/setter pair
- username → String?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getAuthorities(
Map< String, dynamic> jsonData) → List<UserAuthority>