InsanichessUser class Null safety

Model representing base user info.

Constructors

InsanichessUser({required String id, required String email, String? password, String? jwtToken})
Constructs new InsanichessUser object with id, email, and optional password and jwtToken.
const
InsanichessUser.fromJson(Map<String, dynamic> json)
Constructs new InsanichessUser object from json.

Properties

email String
The email of the user.
final
hashCode int
The hash code for this object.
read-onlyinherited
id String
The id of the user.
final
jwtToken String?
JWT token corresponding to user.
final
password String?
The password of the user, PLAIN.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

copyWith({String? id, String? email, String? jwtToken}) InsanichessUser
Returns new instance of InsanichessUser with modified fields.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() Map<String, Object?>
Converts this object into json representation.
toString() String
A string representation of this object.
inherited

Operators

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