Client.fromXMLElement constructor
Client.fromXMLElement(
- XmlElement element
Implementation
Client.fromXMLElement(XmlElement element)
: this.Ip = element.getAttribute('ip')!,
this.Latitude = double.parse(element.getAttribute('lat')!),
this.Longitude = double.parse(element.getAttribute('lon')!),
this.Isp = element.getAttribute('isp')!,
this.IspRating = double.parse(element.getAttribute('isprating')!),
this.Rating = double.parse(element.getAttribute('rating')!),
this.IspAvarageDownloadSpeed = int.parse(element.getAttribute('ispdlavg')!),
this.IspAvarageUploadSpeed = int.parse(element.getAttribute('ispulavg')!),
this.geoCoordinate =
Coordinate(double.parse(element.getAttribute('lat')!), double.parse(element.getAttribute('lon')!));