AuthorizationCodeResponse class
Access token response data model. This is the only request necessary for the Authorization Code flow
- Annotations
-
- @immutable
Constructors
-
AuthorizationCodeResponse.new({required String accessToken, required String tokenType, required int expiresIn, required List<
BattleNetScope> scope, required String sub, required String idToken}) -
Creates an instance of AuthorizationCodeResponse.
const
-
AuthorizationCodeResponse.fromJson(Map<
String, dynamic> json) -
Creates an instance of AuthorizationCodeResponse from a JSON map.
factory
- AuthorizationCodeResponse.fromRawJson(String str)
-
Creates an instance of AuthorizationCodeResponse from a JSON string.
factory
Properties
- accessToken → String
-
The access token issued by the authorization server.
final
- expiresIn → int
-
The duration in seconds for which the access token is valid.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- idToken → String
-
The ID token issued by the authorization server.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scope
→ List<
BattleNetScope> -
A list of scopes that the access token is valid for.
final
- sub → String
-
The subject (sub) identifier, representing the user.
final
- tokenType → String
-
The type of the token issued, typically "Bearer".
final
Methods
-
copyWith(
{String? accessToken, String? tokenType, int? expiresIn, List< BattleNetScope> ? scope, String? sub, String? idToken}) → AuthorizationCodeResponse - Returns a copy of this instance with the given fields replaced by new values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this instance to a JSON map.
-
toRawJson(
) → String - Converts this instance to a JSON string.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override