Param.parse constructor

Param.parse(
  1. XmlElement element
)

Factory method to parse an XmlElement and create a Param object from it.

The element is an XML element containing the parameter information.

Returns the parsed Param object.

Implementation

factory Param.parse(XmlElement element) {
  return Param(
    name: element.getAttribute('name'),
    value: element.innerText,
  );
}