User class
<p>This class creates a User model and returns a user instance.</p>
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>?
<span class="feature">read / write</span>
authToken ↔ String?
<span class="feature">read / write</span>
box → BoxBase?
Get the box in which this object is stored. Returns <code>null</code> if object has
not been added to a box yet.
<span class="feature">read-only</span><span class="feature">inherited</span>
createdOrganizations ↔ List<OrgInfo>?
<span class="feature">read / write</span>
email ↔ String?
<span class="feature">read / write</span>
firstName ↔ String?
<span class="feature">read / write</span>
hashCode → int
The hash code for this object.
<span class="feature">read-only</span><span class="feature">inherited</span>
id ↔ String?
<span class="feature">read / write</span>
image ↔ String?
<span class="feature">read / write</span>
isInBox → bool
Returns whether this object is currently stored in a box.
<span class="feature">read-only</span><span class="feature">inherited</span>
joinedOrganizations ↔ List<OrgInfo>?
<span class="feature">read / write</span>
key → dynamic
Get the key associated with this object. Returns <code>null</code> if object has
not been added to a box yet.
<span class="feature">read-only</span><span class="feature">inherited</span>
lastName ↔ String?
<span class="feature">read / write</span>
membershipRequests ↔ List<OrgInfo>?
<span class="feature">read / write</span>
refreshToken ↔ String?
<span class="feature">read / write</span>
runtimeType → Type
A representation of the runtime type of the object.
<span class="feature">read-only</span><span class="feature">inherited</span>
Methods
delete() Future<void>
Deletes this object from the box it is stored in.
<span class="feature">inherited</span>
noSuchMethod(Invocation invocation) dynamic
Invoked when a non-existent method or property is accessed.
<span class="feature">inherited</span>
print() void
save() Future<void>
Persists this object.
<span class="feature">inherited</span>
toString() String
A string representation of this object.
<span class="feature">inherited</span>
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.
<span class="feature">inherited</span>