parse static method

Category? parse(
  1. XmlElement? element
)

Implementation

static Category? parse(XmlElement? element) {
  if (element == null) {
    return null;
  }

  return Category(
    scheme: element.getAttribute('scheme'),
    label: element.getAttribute('label'),
    value: element.innerText,
  );
}