Rule.fromXml constructor

Rule.fromXml(
  1. XmlElement? xml
)

Implementation

Rule.fromXml(XmlElement? xml) {
  abortIncompleteMultipartUpload = AbortIncompleteMultipartUpload.fromXml(
    getProp(xml, 'AbortIncompleteMultipartUpload'),
  );
  expiration = LifecycleExpiration.fromXml(getProp(xml, 'Expiration'));
  iD = getProp(xml, 'ID')?.innerText;
  noncurrentVersionExpiration = NoncurrentVersionExpiration.fromXml(
    getProp(xml, 'NoncurrentVersionExpiration'),
  );
  noncurrentVersionTransition = NoncurrentVersionTransition.fromXml(
    getProp(xml, 'NoncurrentVersionTransition'),
  );
  prefix = getProp(xml, 'Prefix')?.innerText;
  status = getProp(xml, 'Status')?.innerText;
  transition = Transition.fromXml(getProp(xml, 'Transition'));
}