toMap method
Implementation
Map<String, String> toMap() {
var map = {"token": token,
"token_type_hint": tokenType == TokenType.accessToken
? "access_token"
: "refresh_token",
};
if (clientId != null) map = {"client_id": clientId!, ...map};
if (clientSecret != null) map = {"client_secret": clientSecret!, ...map};
return map;
}