Rule.fromXml constructor
Rule.fromXml(
- XmlElement elem
Implementation
factory Rule.fromXml(_s.XmlElement elem) {
return Rule(
prefix: _s.extractXmlStringValue(elem, 'Prefix')!,
status: _s.extractXmlStringValue(elem, 'Status')!.toExpirationStatus(),
abortIncompleteMultipartUpload: _s
.extractXmlChild(elem, 'AbortIncompleteMultipartUpload')
?.let((e) => AbortIncompleteMultipartUpload.fromXml(e)),
expiration: _s
.extractXmlChild(elem, 'Expiration')
?.let((e) => LifecycleExpiration.fromXml(e)),
id: _s.extractXmlStringValue(elem, 'ID'),
noncurrentVersionExpiration: _s
.extractXmlChild(elem, 'NoncurrentVersionExpiration')
?.let((e) => NoncurrentVersionExpiration.fromXml(e)),
noncurrentVersionTransition: _s
.extractXmlChild(elem, 'NoncurrentVersionTransition')
?.let((e) => NoncurrentVersionTransition.fromXml(e)),
transition: _s
.extractXmlChild(elem, 'Transition')
?.let((e) => Transition.fromXml(e)),
);
}