User class Null safety

This class represents a user authorized to access the application

Implemented types
Available Extensions
Annotations

Constructors

User({String? id, required String firstname, required String lastname, required String email, String password = ''})
User.empty()
User.fromJson(Json json)
Generate a user from a Map
factory

Properties

email String
Email address
final
firstname String
First name
read / write, override
hashCode int
The hash code for this object. [...]
read-only, inherited
id String?
Primary identifier
@JsonKey(includeIfNull: false), final
isValid bool
Is the current user a valid user
read-only
lastname String
Last name
read / write, override
password String
Password
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Json
Returns the json representation of this instance
override
toString() String
A string representation of this object. [...]
inherited

Operators

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