AuthorizationTokens class
Represents a set of authentication tokens, including access and refresh tokens, along with their expiration times.
- Annotations
-
- @JsonSerializable.new(includeIfNull: false, explicitToJson: true)
Constructors
- AuthorizationTokens({required String accessToken, required DateTime accessExpiresAt, required String refreshToken, required DateTime refreshExpiresAt})
- Creates an AuthorizationTokens instance.
-
AuthorizationTokens.fromJson(Map<
String, dynamic> json) -
Creates an AuthorizationTokens instance from a JSON map.
factory
Properties
- accessExpiresAt → DateTime
-
The expiration time of the access token as a DateTime (UTC, seconds since epoch when serialized).
final
- accessToken → String
-
The access token used for authenticating API requests.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- refreshExpiresAt → DateTime
-
The expiration time of the refresh token as a DateTime (UTC, seconds since epoch when serialized).
final
- refreshToken → String
-
The refresh token used to obtain a new access token.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this AuthorizationTokens instance to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited