fromJson static method
Returns a new TokenResponse instance and imports its values from
json if it's non-null, null if json is null.
Implementation
static TokenResponse? fromJson(Map<String, dynamic>? json) => json == null
? null
: TokenResponse(
refreshToken: json[r'refresh_token'],
accessToken: json[r'access_token'],
expiresAt: json[r'expires_at'] == null
? null
: DateTime.parse(json[r'expires_at']),
expiresIn: json[r'expires_in'],
tokenType: json[r'token_type'],
);