Location.parse constructor
Location.parse(
- XmlElement element
Factory method to parse an XmlElement
and create a Location object from it.
The element
is an XML element containing the location information.
Returns the parsed Location object.
Implementation
factory Location.parse(XmlElement element) {
return Location(
geo: element.getAttribute('geo'),
osm: element.getAttribute('osm'),
value: element.innerText,
);
}