controlURL method
Implementation
String controlURL(String type) {
final base = removeTrailing("/", info.URLBase);
final s = info.serviceList
.firstWhere((element) => element['serviceId'].contains(type));
if (s != null) {
final controlURL = trimLeading("/", s["controlURL"]);
return base + '/' + controlURL;
}
throw Exception("not found controlURL");
}