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