fromXml static method

ExpandedModel? fromXml(
  1. WidgetModel parent,
  2. XmlElement xml, {
  3. String? type,
})
override

Implementation

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