MBUser class

An MBurger user

Constructors

MBUser({required int id, required String? name, required String? surname, required String email, required String? phone, required String? imageUrl, required Map<String, dynamic>? data, required List<MBUserContractStatus>? contracts, required MBUserAuthMode authMode})
Initializes a user with all its data
MBUser.fromDictionary(Map<String, dynamic> dictionary)
Initializes a user from the dictionary returned by the api
factory

Properties

authMode MBUserAuthMode
The auth mode used to login
getter/setter pair
contracts List<MBUserContractStatus>?
Contracts associated with the user
getter/setter pair
data Map<String, dynamic>?
Additional data for this user
getter/setter pair
email String
The email of the user
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id int
The id of the user
getter/setter pair
imageUrl String?
The url of the profile image
getter/setter pair
name String?
The name of the user
getter/setter pair
phone String?
The phone of the user
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
surname String?
The surname of the user
getter/setter pair

Methods

authModeToString(MBUserAuthMode authMode) String
Generates a string from a MBUserAuthMode
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDictionary() Map<String, dynamic>
Converts this user to a dictionary
toString() String
A string representation of this object.
inherited

Operators

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