DescribeMetricCollectionTypesAnswer.fromXml constructor

DescribeMetricCollectionTypesAnswer.fromXml(
  1. XmlElement elem
)

Implementation

factory DescribeMetricCollectionTypesAnswer.fromXml(_s.XmlElement elem) {
  return DescribeMetricCollectionTypesAnswer(
    granularities: _s.extractXmlChild(elem, 'Granularities')?.let((elem) =>
        elem
            .findElements('member')
            .map((c) => MetricGranularityType.fromXml(c))
            .toList()),
    metrics: _s.extractXmlChild(elem, 'Metrics')?.let((elem) => elem
        .findElements('member')
        .map((c) => MetricCollectionType.fromXml(c))
        .toList()),
  );
}