GetInsightRuleReportOutput.fromXml constructor
GetInsightRuleReportOutput.fromXml(
- XmlElement elem
Implementation
factory GetInsightRuleReportOutput.fromXml(_s.XmlElement elem) {
return GetInsightRuleReportOutput(
aggregateValue: _s.extractXmlDoubleValue(elem, 'AggregateValue'),
aggregationStatistic:
_s.extractXmlStringValue(elem, 'AggregationStatistic'),
approximateUniqueCount:
_s.extractXmlIntValue(elem, 'ApproximateUniqueCount'),
contributors: _s.extractXmlChild(elem, 'Contributors')?.let((elem) => elem
.findElements('member')
.map((c) => InsightRuleContributor.fromXml(c))
.toList()),
keyLabels: _s
.extractXmlChild(elem, 'KeyLabels')
?.let((elem) => _s.extractXmlStringListValues(elem, 'member')),
metricDatapoints: _s.extractXmlChild(elem, 'MetricDatapoints')?.let(
(elem) => elem
.findElements('member')
.map((c) => InsightRuleMetricDatapoint.fromXml(c))
.toList()),
);
}