deserialize method

  1. @override
void deserialize(
  1. XmlElement xml
)
override

Deserializes the FML template elements, attributes and children

Implementation

@override
void deserialize(XmlElement xml) {
  // deserialize
  super.deserialize(xml);

  // find element
  for (XmlElement node in xml.childElements) {
    String name = node.localName.toLowerCase();
    if (name == 'get' && parent != null) {
      ds = HttpGetModel.fromXml(parent!, node);
      ds!.autoexecute = false;
      ds!.autoquery = false;
      ds!.timetolive = 0;
      ds!.canRunInBackground = false;
    }
    if (ds != null) break;
  }
}