mapToQBIceServer static method

QBIceServer? mapToQBIceServer(
  1. Map? map
)

Implementation

static QBIceServer? mapToQBIceServer(Map<dynamic, dynamic>? map) {
  if (map == null || map.length <= 0) {
    return null;
  }

  QBIceServer qbIceServer = QBIceServer();

  if (map.containsKey("url")) {
    qbIceServer.url = map["url"] as String?;
  }
  if (map.containsKey("userName")) {
    qbIceServer.userName = map["userName"] as String?;
  }
  if (map.containsKey("password")) {
    qbIceServer.password = map["password"] as String?;
  }

  return qbIceServer;
}