parse static method
Implementation
static Text? parse(XmlElement? element) {
if (element == null) {
return null;
}
return Text(
type: element.getAttribute('type'),
lang: element.getAttribute('lang'),
start: element.getAttribute('start'),
end: element.getAttribute('end'),
value: element.text,
);
}