ValidStorageOptions.fromXml constructor
ValidStorageOptions.fromXml(
- XmlElement elem
Implementation
factory ValidStorageOptions.fromXml(_s.XmlElement elem) {
return ValidStorageOptions(
iopsToStorageRatio: _s.extractXmlChild(elem, 'IopsToStorageRatio')?.let(
(elem) => elem
.findElements('DoubleRange')
.map((c) => DoubleRange.fromXml(c))
.toList()),
provisionedIops: _s.extractXmlChild(elem, 'ProvisionedIops')?.let(
(elem) =>
elem.findElements('Range').map((c) => Range.fromXml(c)).toList()),
storageSize: _s.extractXmlChild(elem, 'StorageSize')?.let((elem) =>
elem.findElements('Range').map((c) => Range.fromXml(c)).toList()),
storageType: _s.extractXmlStringValue(elem, 'StorageType'),
);
}