deserialize method
Deserializes the FML template elements, attributes and children
Implementation
@override
void deserialize(XmlElement xml) {
// deserialize
super.deserialize(xml);
// properties
color = Xml.attribute(node: xml, tag: 'color');
radius = Xml.attribute(node: xml, tag: 'radius');
position = Xml.attribute(node: xml, tag: 'position');
modal = Xml.attribute(node: xml, tag: 'modal');
timeout = Xml.get(node: xml, tag: 'timeout');
distance = Xml.get(node: xml, tag: 'distance');
arrow = Xml.get(node: xml, tag: 'arrow');
openMethod =
toEnum(Xml.get(node: xml, tag: 'openmethod'), OpenMethods.values);
}