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