Token class Null safety

Annotations

Constructors

Token({required String accessToken, required int expiresIn, String? scope, required String tokenType, String? refreshToken})
Token.fromJson(Map<String, dynamic> json)
factory

Properties

accessToken String
@JsonKey(name: 'access_token'), read / write
expiresIn int
@JsonKey(name: 'expires_in'), read / write
hashCode int
The hash code for this object.
read-only, inherited
refreshToken String?
@JsonKey(name: 'refresh_token'), read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scope String?
read / write
tokenType String
@JsonKey(name: 'token_type'), read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited