parse static method

Rating? parse(
  1. XmlElement? element
)

Implementation

static Rating? parse(XmlElement? element) {
  if (element == null) {
    return null;
  }
  return Rating(
    scheme: element.getAttribute('scheme'),
    value: element.innerText,
  );
}