GetClientTokenResult class
Result data returned by getClientToken.
Constructors
- GetClientTokenResult({required String accessToken, String? expiry, String? refreshToken, required String tokenType})
-
Creates a new GetClientTokenResult.
accessTokenThe OAuth2 access token used by the client to authenticate against the Google Cloud API.expiryExpiry is the optional expiration time of the access token. If zero, TokenSource implementations will reuse the same token forever and RefreshToken or equivalent mechanisms for that TokenSource will not be used.refreshTokenRefreshToken is a token that's used by the application (as opposed to the user) to refresh the access token if it expires.tokenTypeThe type of auth token. Possible types are "Bearer", "MAC", "Basic".const -
GetClientTokenResult.fromMap(Map<
String, dynamic> map) -
factory
Properties
- accessToken → String
-
The OAuth2 access token used by the client to authenticate against the Google Cloud API.
final
- expiry → String?
-
Expiry is the optional expiration time of the access token. If zero, TokenSource implementations will reuse the same token forever and RefreshToken or equivalent mechanisms for that TokenSource will not be used.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- refreshToken → String?
-
RefreshToken is a token that's used by the application (as opposed to the user) to refresh the access token if it expires.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tokenType → String
-
The type of auth token. Possible types are "Bearer", "MAC", "Basic".
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited