Client.fromXMLElement constructor
Client.fromXMLElement(
- XmlElement? element
Implementation
Client.fromXMLElement(XmlElement? element)
: ip = element!.getAttribute('ip')!,
latitude = double.parse(element.getAttribute('lat')!),
longitude = double.parse(element.getAttribute('lon')!),
isp = element.getAttribute('isp')!,
ispRating = double.parse(element.getAttribute('isprating')!),
rating = double.parse(element.getAttribute('rating')!),
ispAvarageDownloadSpeed = int.parse(element.getAttribute('ispdlavg')!),
ispAvarageUploadSpeed = int.parse(element.getAttribute('ispulavg')!),
geoCoordinate = Coordinate(
double.parse(element.getAttribute('lat')!),
double.parse(element.getAttribute('lon')!),
);