Activity.fromXml constructor
Activity.fromXml(
- XmlElement elem
Implementation
factory Activity.fromXml(_s.XmlElement elem) {
return Activity(
activityId: _s.extractXmlStringValue(elem, 'ActivityId')!,
autoScalingGroupName:
_s.extractXmlStringValue(elem, 'AutoScalingGroupName')!,
cause: _s.extractXmlStringValue(elem, 'Cause')!,
startTime: _s.extractXmlDateTimeValue(elem, 'StartTime')!,
statusCode: _s
.extractXmlStringValue(elem, 'StatusCode')!
.toScalingActivityStatusCode(),
description: _s.extractXmlStringValue(elem, 'Description'),
details: _s.extractXmlStringValue(elem, 'Details'),
endTime: _s.extractXmlDateTimeValue(elem, 'EndTime'),
progress: _s.extractXmlIntValue(elem, 'Progress'),
statusMessage: _s.extractXmlStringValue(elem, 'StatusMessage'),
);
}