fromXml static method

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

Implementation

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