execute method
Implementation
Future<SessionModel?> execute() async {
String session = await _preferencesDatasource.getSession();
debugPrint("GetCurrentSessionUseCase: Session: ${session}");
try {
if (session.isNotEmpty) {
return SessionModel.fromJson(json.decode(session));
}
} catch (e) {
debugPrint("GetCurrentSessionUseCase: Exception: ${e}");
}
return null;
}