Transcript.parse constructor
Transcript.parse(
- XmlElement element
Factory method to parse an XmlElement
and create a Transcript object from it.
The element
is an XML element containing the transcript information.
Returns the parsed Transcript object.
Implementation
factory Transcript.parse(XmlElement element) {
return Transcript(
url: element.getAttribute('url'),
type: element.getAttribute('type'),
language: element.getAttribute('language'),
rel: element.getAttribute('rel'),
);
}