Settings.fromXMLElement constructor

Settings.fromXMLElement(
  1. XmlElement? element
)

Implementation

Settings.fromXMLElement(XmlElement? element)
    : client = Client.fromXMLElement(element?.getElement('client')),
      times = Times.fromXMLElement(element?.getElement('times')),
      download = Download.fromXMLElement(element?.getElement('download')),
      upload = Upload.fromXMLElement(element?.getElement('upload')),
      serverConfig =
          ServerConfig.fromXMLElement(element?.getElement('server-config')),
      servers = <Server>[];