ReservedCacheNodesOffering.fromXml constructor
ReservedCacheNodesOffering.fromXml(
- XmlElement elem
Implementation
factory ReservedCacheNodesOffering.fromXml(_s.XmlElement elem) {
return ReservedCacheNodesOffering(
cacheNodeType: _s.extractXmlStringValue(elem, 'CacheNodeType'),
duration: _s.extractXmlIntValue(elem, 'Duration'),
fixedPrice: _s.extractXmlDoubleValue(elem, 'FixedPrice'),
offeringType: _s.extractXmlStringValue(elem, 'OfferingType'),
productDescription: _s.extractXmlStringValue(elem, 'ProductDescription'),
recurringCharges: _s.extractXmlChild(elem, 'RecurringCharges')?.let(
(elem) => elem
.findElements('RecurringCharge')
.map((c) => RecurringCharge.fromXml(c))
.toList()),
reservedCacheNodesOfferingId:
_s.extractXmlStringValue(elem, 'ReservedCacheNodesOfferingId'),
usagePrice: _s.extractXmlDoubleValue(elem, 'UsagePrice'),
);
}