Times.fromXMLElement constructor

Times.fromXMLElement(
  1. XmlElement? element
)

Implementation

Times.fromXMLElement(XmlElement? element)
    : download1 = int.parse(element!.getAttribute('dl1')!),
      download2 = int.parse(element.getAttribute('dl2')!),
      download3 = int.parse(element.getAttribute('dl3')!),
      upload1 = int.parse(element.getAttribute('ul1')!),
      upload2 = int.parse(element.getAttribute('ul2')!),
      upload3 = int.parse(element.getAttribute('ul3')!);