fromXml static method

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

Implementation

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