UserModel class
User model
Constructors
- UserModel({required String userName, required String email, required String firstName, required String lastName, required bool isActive, required String type, required String phone, required int business, required String photo, required int franchise, required bool approved, required bool isTester, required String coin, required String telegramUserName, required String? referralCode, required String? referBy, required List socialProfiles, required UserSetting setting, required String token, required int id})
-
UserModel.fromJson(Map<
String, dynamic> json) -
to convert json data into user object
factory
Properties
- approved ↔ bool
-
getter/setter pair
- business ↔ int
-
getter/setter pair
- coin ↔ String
-
getter/setter pair
- email ↔ String
-
getter/setter pair
- firstName ↔ String
-
getter/setter pair
- franchise ↔ int
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ int
-
getter/setter pair
- isActive ↔ bool
-
getter/setter pair
- isTester ↔ bool
-
getter/setter pair
- lastName ↔ String
-
getter/setter pair
- phone ↔ String
-
getter/setter pair
- photo ↔ String
-
getter/setter pair
- referBy ↔ String?
-
getter/setter pair
- referralCode ↔ String?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- setting ↔ UserSetting
-
getter/setter pair
-
getter/setter pair
- telegramUserName ↔ String
-
getter/setter pair
- token ↔ String
-
getter/setter pair
- type ↔ String
-
getter/setter pair
- userName ↔ String
-
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - to convert user object into json data
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited