AbbreviationInfo.fromXmlElement constructor
AbbreviationInfo.fromXmlElement(
- XmlElement data
Implementation
factory AbbreviationInfo.fromXmlElement(XmlElement data) {
final abbreviation =
data.getElement(ApiXmlElement.abbreviation.name)!.innerText.trim();
final aux = data.getElement(ApiXmlElement.pronunciationInfo.name);
final pronunciationInfo =
aux == null ? null : PronunciationInfo.fromXmlElement(aux);
return AbbreviationInfo(
abbreviation: abbreviation,
pronunciationInfo: pronunciationInfo,
);
}