toJson method
Transforms this access token object to a Map.
This is used mostly internally by this library.
Implementation
Map<String, dynamic> toJson() {
return <String, dynamic>{
'token': token,
'userId': userId,
'expires': expires?.millisecondsSinceEpoch,
'permissions': permissions,
'declinedPermissions': declinedPermissions,
'applicationId': applicationId,
'expiredPermissions': expiredPermissions,
'graphDomain': graphDomain,
'isExpired': isExpired,
'lastRefresh': lastRefresh?.millisecondsSinceEpoch,
'isDataAccessExpired': isDataAccessExpired,
'dataAccessExpirationTime':
dataAccessExpirationTime?.millisecondsSinceEpoch,
};
}