fromXml static method
Implementation
static MapMarkerModel? fromXml(WidgetModel parent, XmlElement? xml, {dynamic data})
{
MapMarkerModel? model;
try
{
// build model
model = MapMarkerModel(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;
}