loadTokenToCache<T extends Token> method
Implementation
Future<T> loadTokenToCache<T extends Token>() async {
var json = await _read(key: _identifier);
if (json == null) return null;
try {
var data = Convert.jsonDecode(json);
return _getTokenFromMap<T>(data);
} catch (exception) {
print(exception);
return null;
}
}