accept method

Future<QBRTCSession?> accept(
  1. String sessionId, {
  2. Map<String, Object>? userInfo,
})

Implementation

Future<QBRTCSession?> accept(String sessionId, {Map<String, Object>? userInfo}) async {
  Map<String, Object> values = Map();

  values["sessionId"] = sessionId;

  if (userInfo != null) {
    values["userInfo"] = userInfo;
  }

  Map<Object?, Object?> map = await _webRtcModule.invokeMethod(ACCEPT_METHOD, values);

  QBRTCSession? qbSession = QBRTCSessionMapper.mapToQBRtcSession(map);

  return qbSession;
}