CacheNodeTypeSpecificParameter.fromXml constructor

CacheNodeTypeSpecificParameter.fromXml(
  1. XmlElement elem
)

Implementation

factory CacheNodeTypeSpecificParameter.fromXml(_s.XmlElement elem) {
  return CacheNodeTypeSpecificParameter(
    allowedValues: _s.extractXmlStringValue(elem, 'AllowedValues'),
    cacheNodeTypeSpecificValues: _s
        .extractXmlChild(elem, 'CacheNodeTypeSpecificValues')
        ?.let((elem) => elem
            .findElements('CacheNodeTypeSpecificValue')
            .map((c) => CacheNodeTypeSpecificValue.fromXml(c))
            .toList()),
    changeType: _s.extractXmlStringValue(elem, 'ChangeType')?.toChangeType(),
    dataType: _s.extractXmlStringValue(elem, 'DataType'),
    description: _s.extractXmlStringValue(elem, 'Description'),
    isModifiable: _s.extractXmlBoolValue(elem, 'IsModifiable'),
    minimumEngineVersion:
        _s.extractXmlStringValue(elem, 'MinimumEngineVersion'),
    parameterName: _s.extractXmlStringValue(elem, 'ParameterName'),
    source: _s.extractXmlStringValue(elem, 'Source'),
  );
}