Application.fromXML constructor
Application.fromXML(
- String xmlSTR
Implementation
factory Application.fromXML(String xmlSTR) {
final document = XmlDocument.parse(xmlSTR);
String applicationName = document.rootElement.attributes
.firstWhere((p0) => p0.name.toString() == "applicationName")
.value;
String applicationVersion = document.rootElement.attributes
.firstWhere((p0) => p0.name.toString() == "applicationName")
.value;
String applicationData = document.rootElement.attributes
.firstWhere((p0) => p0.name.toString() == "applicationData",
orElse: () => XmlAttribute(XmlName.fromString(""), ""))
.value;
return Application(
applicationName: applicationName,
applicationVersion: applicationVersion,
applicationData: applicationData);
}