Rating.fromXml constructor

Rating.fromXml(
  1. XmlElement node
)

Creates a new Rating object from an XmlElement

Implementation

factory Rating.fromXml(XmlElement node) {
  return Rating(node.innerText, node.getAttribute('scheme'));
}