StackResourceDetail.fromXml constructor

StackResourceDetail.fromXml(
  1. XmlElement elem
)

Implementation

factory StackResourceDetail.fromXml(_s.XmlElement elem) {
  return StackResourceDetail(
    lastUpdatedTimestamp:
        _s.extractXmlDateTimeValue(elem, 'LastUpdatedTimestamp')!,
    logicalResourceId: _s.extractXmlStringValue(elem, 'LogicalResourceId')!,
    resourceStatus:
        _s.extractXmlStringValue(elem, 'ResourceStatus')!.toResourceStatus(),
    resourceType: _s.extractXmlStringValue(elem, 'ResourceType')!,
    description: _s.extractXmlStringValue(elem, 'Description'),
    driftInformation: _s
        .extractXmlChild(elem, 'DriftInformation')
        ?.let((e) => StackResourceDriftInformation.fromXml(e)),
    metadata: _s.extractXmlStringValue(elem, 'Metadata'),
    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'),
  );
}