parse static method

Text? parse(
  1. XmlElement? element
)

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.innerText,
  );
}