Token class

Constructors

Token({int tokenRefreshAdvanceInSeconds = 300})
Token.fromJson(Map<String, dynamic>? json)
factory

Properties

accessToken String?
getter/setter pair
expiresIn int?
getter/setter pair
expireTimeStamp DateTime?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
idToken String?
getter/setter pair
issueTimeStamp DateTime?
getter/setter pair
refreshToken String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tokenRefreshAdvanceInSeconds int
If token is too clode to expiry - refresh it. Default is 5 minutes (300 seconds)
getter/setter pair
tokenType String?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromMap(Map? map) Token
isExpired(Token? token) bool
toJsonMap(Token? model) Map
tokenIsValid(Token? token) bool