StackInstanceSummary.fromXml constructor

StackInstanceSummary.fromXml(
  1. XmlElement elem
)

Implementation

factory StackInstanceSummary.fromXml(_s.XmlElement elem) {
  return StackInstanceSummary(
    account: _s.extractXmlStringValue(elem, 'Account'),
    driftStatus:
        _s.extractXmlStringValue(elem, 'DriftStatus')?.toStackDriftStatus(),
    lastDriftCheckTimestamp:
        _s.extractXmlDateTimeValue(elem, 'LastDriftCheckTimestamp'),
    organizationalUnitId:
        _s.extractXmlStringValue(elem, 'OrganizationalUnitId'),
    region: _s.extractXmlStringValue(elem, 'Region'),
    stackId: _s.extractXmlStringValue(elem, 'StackId'),
    stackInstanceStatus: _s
        .extractXmlChild(elem, 'StackInstanceStatus')
        ?.let((e) => StackInstanceComprehensiveStatus.fromXml(e)),
    stackSetId: _s.extractXmlStringValue(elem, 'StackSetId'),
    status: _s.extractXmlStringValue(elem, 'Status')?.toStackInstanceStatus(),
    statusReason: _s.extractXmlStringValue(elem, 'StatusReason'),
  );
}