UserModel class

Constructors

UserModel({required String email, required String phone, required String firstName, required String lastName, required String gender, required String dateOfBirth, String? password, required String userType, String? defaultAddressId, String? token, String? profilePicture})
UserModel.getData(Map<String, dynamic> jsonResponse)
factory

Properties

dateOfBirth ↔ String
getter/setter pair
defaultAddressId ↔ String?
getter/setter pair
email ↔ String
getter/setter pair
firstName ↔ String
getter/setter pair
gender ↔ String
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
lastName ↔ String
getter/setter pair
password ↔ String?
getter/setter pair
phone ↔ String
getter/setter pair
profilePicture ↔ String?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
token ↔ String?
getter/setter pair
userType ↔ String
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
postData() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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