ParameterDeclaration.fromXml constructor

ParameterDeclaration.fromXml(
  1. XmlElement elem
)

Implementation

factory ParameterDeclaration.fromXml(_s.XmlElement elem) {
  return ParameterDeclaration(
    defaultValue: _s.extractXmlStringValue(elem, 'DefaultValue'),
    description: _s.extractXmlStringValue(elem, 'Description'),
    noEcho: _s.extractXmlBoolValue(elem, 'NoEcho'),
    parameterConstraints: _s
        .extractXmlChild(elem, 'ParameterConstraints')
        ?.let((e) => ParameterConstraints.fromXml(e)),
    parameterKey: _s.extractXmlStringValue(elem, 'ParameterKey'),
    parameterType: _s.extractXmlStringValue(elem, 'ParameterType'),
  );
}