fromXml static method

Future<ConfigModel?> fromXml(
  1. WidgetModel? parent,
  2. XmlElement xml
)

Implementation

static Future<ConfigModel?> fromXml(WidgetModel? parent, XmlElement xml) async
{
  ConfigModel? model;
  try
  {
    model = ConfigModel();
    model.deserialize(xml);
    model.xml = xml.toXmlString();
  }
  catch(e)
  {
    Log().debug(e.toString());
    model = null;
  }
  return model;
}