parse static method

Description? parse(
  1. XmlElement? element
)

Implementation

static Description? parse(XmlElement? element) {
  if (element == null) {
    return null;
  }
  return Description(
    type: element.getAttribute('type'),
    value: element.text,
  );
}