OAuthToken class Null safety

Access token and refresh token information.

Annotations

Constructors

OAuthToken({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})
const
factory
OAuthToken.fromJson(Map<String, dynamic> json)
factory

Properties

accessToken String?
API 인증에 사용하는 엑세스 토큰.
read-onlyinherited
accessTokenExpiresAt DateTime?
엑세스 토큰 만료 시각. (android)
@JsonKey(fromJson: dateTimeFromJson, name: 'access_token_expires_at')read-onlyinherited
copyWith → $OAuthTokenCopyWith<OAuthToken>
@JsonKey(ignore: true)read-onlyinherited
expiresIn int?
엑세스 토큰 만료 시각. (ios)
read-onlyinherited
hashCode int
The hash code for this object.
read-onlyinherited
refreshToken String?
엑세스 토큰을 갱신하는데 사용하는 리프레시 토큰.
read-onlyinherited
refreshTokenExpiresAt DateTime?
리프레시 토큰 만료 시각. Nullable ( android )
@JsonKey(fromJson: dateTimeFromJson)read-onlyinherited
refreshTokenExpiresIn int?
리프레시 토큰 만료 시각. Nullable ( ios )
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
scopes List<String>?
이 토큰에 부여된 scope 목록.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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