Server.fromXMLElement constructor
Server.fromXMLElement(
- XmlElement? element
Implementation
Server.fromXMLElement(XmlElement? element)
: id = int.parse(element!.getAttribute('id')!),
name = element.getAttribute('name')!,
country = element.getAttribute('country')!,
sponsor = element.getAttribute('sponsor')!,
host = element.getAttribute('host')!,
url = element.getAttribute('url')!,
latitude = double.parse(element.getAttribute('lat')!),
longitude = double.parse(element.getAttribute('lon')!),
distance = 99999999999,
latency = 99999999999,
geoCoordinate = Coordinate(
double.parse(element.getAttribute('lat')!),
double.parse(element.getAttribute('lon')!),
);