qbIceServerToMap static method

Map<String, Object>? qbIceServerToMap(
  1. QBIceServer? qbIceServer
)

Implementation

static Map<String, Object>? qbIceServerToMap(QBIceServer? qbIceServer) {
  if (qbIceServer == null) {
    return null;
  }

  Map<String, Object> iceServerMap = Map();

  if (qbIceServer.url != null) {
    iceServerMap["url"] = qbIceServer.url as String;
  }
  if (qbIceServer.userName != null) {
    iceServerMap["userName"] = qbIceServer.userName as String;
  }
  if (qbIceServer.password != null) {
    iceServerMap["password"] = qbIceServer.password as String;
  }

  return iceServerMap;
}