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