InterfaceLevelRequest.fromXML constructor
InterfaceLevelRequest.fromXML(
- String xmlSTR
Implementation
factory InterfaceLevelRequest.fromXML(String xmlSTR) {
final document = XmlDocument.parse(xmlSTR);
String messageID = document.rootElement.attributes
.firstWhere((p0) => p0.name.toString() == "messageID")
.value;
String xsi = document.rootElement.attributes
.firstWhere((p0) => p0.name.toString() == "xmlns:xsi")
.value;
String level = document.rootElement.childElements.first.attributes
.firstWhere((p0) => p0.name.toString() == "level")
.value;
return InterfaceLevelRequest(
level: level, xsi: xsi, messageID: int.parse(messageID));
}