fromXml static method
Implementation
static DetectorModel? fromXml(WidgetModel parent, XmlElement xml)
{
DetectorModel? model;
try
{
model = DetectorModel(parent, Xml.get(node: xml, tag: 'id'));
model.deserialize(xml);
}
catch(e)
{
Log().exception(e, caller: 'detector.Model');
model = null;
}
return model;
}