AuthToken class Null safety

Authentication token received from backend on login

Annotations

Constructors

AuthToken({required String accessToken, required String tokenType, required String expiresIn})
Successful auth token
AuthToken.empty([String message = ''])
Empty token used before any authentication has ocurred
AuthToken.failed(String message)
Auth failure token
AuthToken.fromJson(Json json)
Generate a authtoken from a Map
factory

Properties

accessToken String
Access token to use for authentication
final
expiresIn String
Date at which the token expires
final
hashCode int
The hash code for this object. [...]
read-only, inherited
isSuccessful bool
Is the current token for a successful authentication
read-only
message String
Message when authentication failed
@JsonKey(ignore: true), final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
tokenType String
Type of token issued
final

Methods

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

Operators

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