fromXml static method

MapLocationModel? fromXml(
  1. WidgetModel parent,
  2. XmlElement? xml, {
  3. dynamic data,
})
override

Implementation

static MapLocationModel? fromXml(WidgetModel parent, XmlElement? xml,
    {dynamic data}) {
  MapLocationModel? model;
  try {
    // build model
    model =
        MapLocationModel(parent, Xml.get(node: xml, tag: 'id'), data: data);
    model.deserialize(xml);
  } catch (e) {
    Log().exception(e, caller: 'map.location.Model');
    model = null;
  }
  return model;
}