AccessToken class

Annotations
  • @JsonSerializable(includeIfNull: false)

Constructors

AccessToken.new({required String userName, required String accessToken, required int expiresIn, required String tokenType})
AccessToken.fromJson(Map<String, dynamic> json)
factory

Properties

accessToken String
getter/setter pair
expiresIn int
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tokenType String
getter/setter pair
userName String
getter/setter pair

Methods

calculateExpiration() → void
isExpired() bool
Updates the expiration stamp based on the number of seconds in expiresIn
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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