OAuthToken class
Access token and refresh token information.
- Annotations
-
- @freezed
Constructors
-
OAuthToken.new({String? accessToken, @JsonKey(fromJson: dateTimeFromJson, name: 'access_token_expires_at') DateTime? accessTokenExpiresAt, int? expiresIn, String? refreshToken, @JsonKey(fromJson: dateTimeFromJson) DateTime? refreshTokenExpiresAt, int? refreshTokenExpiresIn, List<
String> ? scopes}) -
constfactory
-
OAuthToken.fromJson(Map<
String, dynamic> json) -
factory
Properties
- accessToken → String?
-
API 인증에 사용하는 엑세스 토큰.
no setterinherited
- accessTokenExpiresAt → DateTime?
-
엑세스 토큰 만료 시각. (android)
no setterinherited
-
copyWith
→ $OAuthTokenCopyWith<
OAuthToken> -
no setterinherited
- expiresIn → int?
-
엑세스 토큰 만료 시각. (ios)
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- refreshToken → String?
-
엑세스 토큰을 갱신하는데 사용하는 리프레시 토큰.
no setterinherited
- refreshTokenExpiresAt → DateTime?
-
리프레시 토큰 만료 시각. Nullable ( android )
no setterinherited
- refreshTokenExpiresIn → int?
-
리프레시 토큰 만료 시각. Nullable ( ios )
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scopes
→ List<
String> ? -
이 토큰에 부여된 scope 목록.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson2(
Map< String, dynamic> json) → OAuthToken