EventDescription.fromXml constructor
EventDescription.fromXml(
- XmlElement elem
Implementation
factory EventDescription.fromXml(_s.XmlElement elem) {
return EventDescription(
applicationName: _s.extractXmlStringValue(elem, 'ApplicationName'),
environmentName: _s.extractXmlStringValue(elem, 'EnvironmentName'),
eventDate: _s.extractXmlDateTimeValue(elem, 'EventDate'),
message: _s.extractXmlStringValue(elem, 'Message'),
platformArn: _s.extractXmlStringValue(elem, 'PlatformArn'),
requestId: _s.extractXmlStringValue(elem, 'RequestId'),
severity: _s.extractXmlStringValue(elem, 'Severity')?.toEventSeverity(),
templateName: _s.extractXmlStringValue(elem, 'TemplateName'),
versionLabel: _s.extractXmlStringValue(elem, 'VersionLabel'),
);
}