OptionGroupOption.fromXml constructor

OptionGroupOption.fromXml(
  1. XmlElement elem
)

Implementation

factory OptionGroupOption.fromXml(_s.XmlElement elem) {
  return OptionGroupOption(
    defaultPort: _s.extractXmlIntValue(elem, 'DefaultPort'),
    description: _s.extractXmlStringValue(elem, 'Description'),
    engineName: _s.extractXmlStringValue(elem, 'EngineName'),
    majorEngineVersion: _s.extractXmlStringValue(elem, 'MajorEngineVersion'),
    minimumRequiredMinorEngineVersion:
        _s.extractXmlStringValue(elem, 'MinimumRequiredMinorEngineVersion'),
    name: _s.extractXmlStringValue(elem, 'Name'),
    optionsDependedOn: _s
        .extractXmlChild(elem, 'OptionsDependedOn')
        ?.let((elem) => _s.extractXmlStringListValues(elem, 'OptionName')),
    portRequired: _s.extractXmlBoolValue(elem, 'PortRequired'),
  );
}