OrderableClusterOption.fromXml constructor

OrderableClusterOption.fromXml(
  1. XmlElement elem
)

Implementation

factory OrderableClusterOption.fromXml(_s.XmlElement elem) {
  return OrderableClusterOption(
    availabilityZones: _s.extractXmlChild(elem, 'AvailabilityZones')?.let(
        (elem) => elem
            .findElements('AvailabilityZone')
            .map((c) => AvailabilityZone.fromXml(c))
            .toList()),
    clusterType: _s.extractXmlStringValue(elem, 'ClusterType'),
    clusterVersion: _s.extractXmlStringValue(elem, 'ClusterVersion'),
    nodeType: _s.extractXmlStringValue(elem, 'NodeType'),
  );
}