Text.parse constructor
Text.parse(
- XmlElement element
Factory method to parse an XmlElement
and create a Text object from it.
The element
is an XML element containing the text information.
Returns the parsed Text object.
Implementation
factory Text.parse(XmlElement element) {
return Text(
type: element.getAttribute('type'),
lang: element.getAttribute('lang'),
start: element.getAttribute('start'),
end: element.getAttribute('end'),
value: element.innerText,
);
}