StackResource.fromXml constructor
StackResource.fromXml(
- XmlElement elem
Implementation
factory StackResource.fromXml(_s.XmlElement elem) {
return StackResource(
logicalResourceId: _s.extractXmlStringValue(elem, 'LogicalResourceId')!,
resourceStatus:
_s.extractXmlStringValue(elem, 'ResourceStatus')!.toResourceStatus(),
resourceType: _s.extractXmlStringValue(elem, 'ResourceType')!,
timestamp: _s.extractXmlDateTimeValue(elem, 'Timestamp')!,
description: _s.extractXmlStringValue(elem, 'Description'),
driftInformation: _s
.extractXmlChild(elem, 'DriftInformation')
?.let((e) => StackResourceDriftInformation.fromXml(e)),
moduleInfo: _s
.extractXmlChild(elem, 'ModuleInfo')
?.let((e) => ModuleInfo.fromXml(e)),
physicalResourceId: _s.extractXmlStringValue(elem, 'PhysicalResourceId'),
resourceStatusReason:
_s.extractXmlStringValue(elem, 'ResourceStatusReason'),
stackId: _s.extractXmlStringValue(elem, 'StackId'),
stackName: _s.extractXmlStringValue(elem, 'StackName'),
);
}