setSession method

Future<QBSession?> setSession(
  1. QBSession qbSession
)

Implementation

Future<QBSession?> setSession(QBSession qbSession) async {
  Map<String, Object>? data = QBSessionMapper.qbSessionToMap(qbSession);

  Map<Object?, Object?> map = await _authModule.invokeMethod(SET_SESSION_METHOD, data);

  QBSession? session = QBSessionMapper.mapToQBSession(map);

  return session;
}