Token class

Token model

Constructors

Token({required int version, required int expires_in, required String username, required String token_type, required String access_token, required String refresh_token, String? type, String? email, String? fullName, String? tenantName, String? locale})
const
Token.fromJson(String source)
factory
Token.fromMap(Map<String, dynamic> map)
factory

Properties

access_token String
final
email String?
final
expires_in int
final
fullName String?
final
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
Convenience getter to determine whether the current token is empty.
no setter
isNotEmpty bool
Convenience getter to determine whether the current token is not empty.
no setter
locale String?
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
refresh_token String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool
If set to true, the toString method will be overridden to output this instance's props.
no setter
tenantName String?
final
token_type String
final
type String?
final
username String
final
version int
final

Methods

copyWith({int? version, int? expires_in, String? username, String? token_type, String? access_token, String? refresh_token, String? type, String? email, String? fullName, String? tenantName, String? locale}) Token
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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

Constants

empty → const Token
Empty token which represents an unauthenticated user.