Error.fromXml constructor

Error.fromXml(
  1. XmlElement xml
)

Implementation

Error.fromXml(XmlElement xml) {
  code = getProp(xml, 'Code')?.innerText;
  key = getProp(xml, 'Key')?.innerText;
  message = getProp(xml, 'Message')?.innerText;
  versionId = getProp(xml, 'VersionId')?.innerText;
}