Error.fromXml constructor

Error.fromXml(
  1. XmlElement xml
)

Implementation

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