Source.parse constructor
Source.parse(
- XmlElement element
Factory method to parse an XmlElement
and create a Source object from it.
The element
is an XML element containing the source information.
Returns the parsed Source object.
Implementation
factory Source.parse(XmlElement element) {
return Source(
uri: element.getAttribute('uri'),
contentType: element.getAttribute('contentType'),
);
}