fromXml static method
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;
}