ReservedNodeOffering.fromXml constructor
ReservedNodeOffering.fromXml(
- XmlElement elem
Implementation
factory ReservedNodeOffering.fromXml(_s.XmlElement elem) {
return ReservedNodeOffering(
currencyCode: _s.extractXmlStringValue(elem, 'CurrencyCode'),
duration: _s.extractXmlIntValue(elem, 'Duration'),
fixedPrice: _s.extractXmlDoubleValue(elem, 'FixedPrice'),
nodeType: _s.extractXmlStringValue(elem, 'NodeType'),
offeringType: _s.extractXmlStringValue(elem, 'OfferingType'),
recurringCharges: _s.extractXmlChild(elem, 'RecurringCharges')?.let(
(elem) => elem
.findElements('RecurringCharge')
.map((c) => RecurringCharge.fromXml(c))
.toList()),
reservedNodeOfferingId:
_s.extractXmlStringValue(elem, 'ReservedNodeOfferingId'),
reservedNodeOfferingType: _s
.extractXmlStringValue(elem, 'ReservedNodeOfferingType')
?.toReservedNodeOfferingType(),
usagePrice: _s.extractXmlDoubleValue(elem, 'UsagePrice'),
);
}