OptionSetting.fromXml constructor

OptionSetting.fromXml(
  1. XmlElement elem
)

Implementation

factory OptionSetting.fromXml(_s.XmlElement elem) {
  return OptionSetting(
    allowedValues: _s.extractXmlStringValue(elem, 'AllowedValues'),
    applyType: _s.extractXmlStringValue(elem, 'ApplyType'),
    dataType: _s.extractXmlStringValue(elem, 'DataType'),
    defaultValue: _s.extractXmlStringValue(elem, 'DefaultValue'),
    description: _s.extractXmlStringValue(elem, 'Description'),
    isCollection: _s.extractXmlBoolValue(elem, 'IsCollection'),
    isModifiable: _s.extractXmlBoolValue(elem, 'IsModifiable'),
    name: _s.extractXmlStringValue(elem, 'Name'),
    value: _s.extractXmlStringValue(elem, 'Value'),
  );
}