DescribeStackDriftDetectionStatusOutput.fromXml constructor

DescribeStackDriftDetectionStatusOutput.fromXml(
  1. XmlElement elem
)

Implementation

factory DescribeStackDriftDetectionStatusOutput.fromXml(_s.XmlElement elem) {
  return DescribeStackDriftDetectionStatusOutput(
    detectionStatus: _s
        .extractXmlStringValue(elem, 'DetectionStatus')!
        .toStackDriftDetectionStatus(),
    stackDriftDetectionId:
        _s.extractXmlStringValue(elem, 'StackDriftDetectionId')!,
    stackId: _s.extractXmlStringValue(elem, 'StackId')!,
    timestamp: _s.extractXmlDateTimeValue(elem, 'Timestamp')!,
    detectionStatusReason:
        _s.extractXmlStringValue(elem, 'DetectionStatusReason'),
    driftedStackResourceCount:
        _s.extractXmlIntValue(elem, 'DriftedStackResourceCount'),
    stackDriftStatus: _s
        .extractXmlStringValue(elem, 'StackDriftStatus')
        ?.toStackDriftStatus(),
  );
}