StackResourceSummary.fromXml constructor
StackResourceSummary.fromXml(
- XmlElement elem
Implementation
factory StackResourceSummary.fromXml(_s.XmlElement elem) {
return StackResourceSummary(
lastUpdatedTimestamp:
_s.extractXmlDateTimeValue(elem, 'LastUpdatedTimestamp')!,
logicalResourceId: _s.extractXmlStringValue(elem, 'LogicalResourceId')!,
resourceStatus:
_s.extractXmlStringValue(elem, 'ResourceStatus')!.toResourceStatus(),
resourceType: _s.extractXmlStringValue(elem, 'ResourceType')!,
driftInformation: _s
.extractXmlChild(elem, 'DriftInformation')
?.let((e) => StackResourceDriftInformationSummary.fromXml(e)),
moduleInfo: _s
.extractXmlChild(elem, 'ModuleInfo')
?.let((e) => ModuleInfo.fromXml(e)),
physicalResourceId: _s.extractXmlStringValue(elem, 'PhysicalResourceId'),
resourceStatusReason:
_s.extractXmlStringValue(elem, 'ResourceStatusReason'),
);
}