UserModel class

Constructors

UserModel({String? id, String? emailAddress, required String phoneNumber, String? password, required String fullName, required DateTime createdAt, DateTime? updatedAt, bool isAdmin = false, bool newUser = true, String? xoraiaID, required String apiKey, String? token, DateTime? tokenExpirationDate, String? companyTypeId, String? description, String? address, String? city, Country? country, int availableCredit = 0, bool blocked = false, bool isVerified = false, String? codePromo})
UserModel.fromJson(Map<String, dynamic> json)
factory

Properties

address String?
final
apiKey String
final
availableCredit int
final
blocked bool
final
box → BoxBase?
Get the box in which this object is stored. Returns null if object has not been added to a box yet.
no setterinherited
city String?
final
codePromo String?
final
companyTypeId String?
final
country Country?
final
createdAt DateTime
final
description String?
final
emailAddress String?
final
fullName String
final
hashCode int
The hash code for this object.
no setterinherited
id String?
final
isAdmin bool
final
isInBox bool
Returns whether this object is currently stored in a box.
no setterinherited
isVerified bool
final
key → dynamic
Get the key associated with this object. Returns null if object has not been added to a box yet.
no setterinherited
final
newUser bool
final
password String?
final
phoneNumber String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String?
final
tokenExpirationDate DateTime?
final
updatedAt DateTime?
final
xoraiaID String?
final

Methods

delete() Future<void>
Deletes this object from the box it is stored in.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save() Future<void>
Persists this object.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited