ApplicationParameter.fromXML constructor

ApplicationParameter.fromXML(
  1. String xmlSTR
)

Implementation

factory ApplicationParameter.fromXML(String xmlSTR) {
  final document = XmlDocument.parse(xmlSTR);
  List<XmlElement> storageElements =
      document.rootElement.findAllElements("storage").toList();
  List<Storage> storages =
      storageElements.map((e) => Storage.fromXML(e.toXmlString())).toList();

  return ApplicationParameter(storages: storages);
}