InstanceRefresh.fromXml constructor

InstanceRefresh.fromXml(
  1. XmlElement elem
)

Implementation

factory InstanceRefresh.fromXml(_s.XmlElement elem) {
  return InstanceRefresh(
    autoScalingGroupName:
        _s.extractXmlStringValue(elem, 'AutoScalingGroupName'),
    endTime: _s.extractXmlDateTimeValue(elem, 'EndTime'),
    instanceRefreshId: _s.extractXmlStringValue(elem, 'InstanceRefreshId'),
    instancesToUpdate: _s.extractXmlIntValue(elem, 'InstancesToUpdate'),
    percentageComplete: _s.extractXmlIntValue(elem, 'PercentageComplete'),
    startTime: _s.extractXmlDateTimeValue(elem, 'StartTime'),
    status:
        _s.extractXmlStringValue(elem, 'Status')?.toInstanceRefreshStatus(),
    statusReason: _s.extractXmlStringValue(elem, 'StatusReason'),
  );
}