getSessionFromCache method
Implementation
Future<Session?> getSessionFromCache() async {
return await _lock.synchronized(() async {
final cache = await PerceptFlutterPlatform.instance.getGlobalProperties();
final sessionString = cache?[sessionCacheKey] ?? "";
if (sessionString.isEmpty) return null;
return Session.fromJson(jsonDecode(sessionString));
});
}