Upload.fromXMLElement constructor

Upload.fromXMLElement(
  1. XmlElement? element
)

Implementation

Upload.fromXMLElement(XmlElement? element)
    : testLength = int.parse(element!.getAttribute('testlength')!),
      ratio = int.parse(element.getAttribute('ratio')!),
      initialTest = int.parse(element.getAttribute('initialtest')!),
      minTestSize = element.getAttribute('mintestsize')!,
      threads = int.parse(element.getAttribute('threads')!),
      maxChunkSize = element.getAttribute('maxchunksize')!,
      maxChunkCount = element.getAttribute('maxchunkcount')!,
      threadsPerUrl = int.parse(element.getAttribute('threadsperurl')!);