License.parse constructor

License.parse(
  1. XmlElement element
)

Parse constructor for the License class, used when 'parsing' a feed

Implementation

factory License.parse(XmlElement element) => License(
      type: element.getAttribute('type'),
      href: element.getAttribute('href'),
      value: element.text,
    );