parse static method

License? parse(
  1. XmlElement? element
)

Implementation

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

  return License(
    type: element.getAttribute('type'),
    href: element.getAttribute('href'),
    value: element.innerText,
  );
}