OAuthAccessTokenInner class

Constructors

OAuthAccessTokenInner({required OAuthAccessTokenInnerObjectEnum object, required String externalAccountId, required String providerUserId, required String token, required int? expiresAt, required String provider, Map<String, Object> publicMetadata = const {}, required String? label, List<String> scopes = const [], String? idToken, String? tokenSecret})
Returns a new OAuthAccessTokenInner instance.

Properties

expiresAt int?
Unix timestamp of the access token expiration.
getter/setter pair
externalAccountId String
External account ID
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
idToken String?
The ID token retrieved from the OIDC provider. Only present for OIDC-compliant OAuth 2.0 providers when available.
getter/setter pair
label String?
getter/setter pair
object OAuthAccessTokenInnerObjectEnum
getter/setter pair
provider String
The ID of the provider
getter/setter pair
providerUserId String
The unique ID of the user in the external provider's system
getter/setter pair
publicMetadata Map<String, Object>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scopes List<String>
The list of scopes that the token is valid for. Only present for OAuth 2.0 tokens.
getter/setter pair
token String
The access token
getter/setter pair
tokenSecret String?
The token secret. Only present for OAuth 1.0 tokens.
getter/setter pair

Methods

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.
override

Static Methods

fromJson(dynamic value) OAuthAccessTokenInner?
Returns a new OAuthAccessTokenInner instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) List<OAuthAccessTokenInner>
mapFromJson(dynamic json) Map<String, OAuthAccessTokenInner>
mapListFromJson(dynamic json, {bool growable = false}) Map<String, List<OAuthAccessTokenInner>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.