TokenResponse class

Constructors

TokenResponse({required String? refreshToken, required String? accessToken, required DateTime? expiresAt, required int? expiresIn, required String? tokenType})
Returns a new TokenResponse instance.

Properties

accessToken String?
getter/setter pair
expiresAt DateTime?
getter/setter pair
expiresIn int?
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
refreshToken String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tokenType String?
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(Map<String, dynamic>? json) TokenResponse?
Returns a new TokenResponse instance and imports its values from json if it's non-null, null if json is null.
listFromJson(List json, {bool? emptyIsNull, bool? growable}) List<TokenResponse?>?
mapFromJson(Map<String, dynamic> json) Map<String, TokenResponse?>
mapListFromJson(Map<String, dynamic> json, {bool? emptyIsNull, bool? growable}) Map<String, List<TokenResponse?>?>