User class
This class creates a User model and returns a user instance.
Inheritance
- Object
- HiveObject
- User
Annotations
- @HiveType(typeId: 1)
Constructors
User ({List<OrgInfo>? adminFor, List<OrgInfo>? createdOrganizations, String? email, String? firstName, String? id, String? image, List<OrgInfo>? joinedOrganizations, String? lastName, String? authToken, String? refreshToken, List<OrgInfo>? membershipRequests})
User.fromJson (Map<String, dynamic> json1, {bool fromOrg = false})
factory
Properties
adminFor ↔ List<OrgInfo>?
read / write
authToken ↔ String?
read / write
box → BoxBase?
Get the box in which this object is stored. Returns null
if object has
not been added to a box yet.
read-onlyinherited
createdOrganizations ↔ List<OrgInfo>?
read / write
email ↔ String?
read / write
firstName ↔ String?
read / write
hashCode → int
The hash code for this object.
read-onlyinherited
id ↔ String?
read / write
image ↔ String?
read / write
isInBox → bool
Returns whether this object is currently stored in a box.
read-onlyinherited
joinedOrganizations ↔ List<OrgInfo>?
read / write
key → dynamic
Get the key associated with this object. Returns null
if object has
not been added to a box yet.
read-onlyinherited
lastName ↔ String?
read / write
membershipRequests ↔ List<OrgInfo>?
read / write
refreshToken ↔ String?
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
Methods
delete() Future<void>
Deletes this object from the box it is stored in.
inherited
noSuchMethod(Invocation invocation) dynamic
Invoked when a non-existent method or property is accessed.
inherited
print() void
save() Future<void>
Persists this object.
inherited
toString() String
A string representation of this object.
inherited
update(User details) void
updateAdminFor(List<OrgInfo> orgList) void
updateCreatedOrg(List<OrgInfo> orgList) void
updateJoinedOrg(List<OrgInfo> orgList) void
updateMemberRequestOrg(List<OrgInfo> orgList) void
Operators
operator ==(Object other) bool
The equality operator.
inherited