User class

User model

Constructors

User({String? id, required String username, required String fullname, required String email, String? password, String? accessToken, String? refreshToken, String? address, bool? emailVerified, String? phone, List? roles, List<String>? roleIds, List<String>? roleNames, String? status, String? verificationToken})
Constructor
User.fromJson(Map<String, dynamic> json)
Get model from Json
factory

Properties

accessToken String?
final
address String?
final
email String
final
emailVerified bool?
final
fullname String
final
hashCode int
The hash code for this object.
no setterinherited
id String?
final
password String?
final
phone String?
final
refreshToken String?
final
roleIds List<String>?
final
roleNames List<String>?
final
roles List?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status String?
final
username String
final
verificationToken String?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson(User instance) Map<String, dynamic>
Get Json from model
toString() String
A string representation of this object.
inherited

Operators

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