MBUser class Null safety

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
read / write
contracts List<MBUserContractStatus>?
Contracts associated with the user
read / write
data Map<String, dynamic>?
Additional data for this user
read / write
email String
The email of the user
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
id int
The id of the user
read / write
imageUrl String?
The url of the profile image
read / write
name String?
The name of the user
read / write
phone String?
The phone of the user
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
surname String?
The surname of the user
read / write

Methods

authModeToString(MBUserAuthMode authMode) String
Generates a string from a MBUserAuthMode
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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