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