fromXml static method

HttpPatchModel? fromXml(
  1. WidgetModel parent,
  2. XmlElement xml
)
override

Implementation

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