toJson method
Serialize to a JSON-encodable map, omitting absent members.
Implementation
Map<String, dynamic> toJson() => <String, dynamic>{
'accessToken': accessToken,
if (refreshToken != null) 'refreshToken': refreshToken!,
'tokenType': tokenType,
'expiresIn': expiresIn,
if (refreshExpiresIn != null) 'refreshExpiresIn': refreshExpiresIn!,
if (scope != null) 'scope': scope!,
if (ext != null) 'ext': ext!,
};