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')?.text;
  noncurrentVersionExpiration = NoncurrentVersionExpiration.fromXml(
      getProp(xml, 'NoncurrentVersionExpiration'));
  noncurrentVersionTransition = NoncurrentVersionTransition.fromXml(
      getProp(xml, 'NoncurrentVersionTransition'));
  prefix = getProp(xml, 'Prefix')?.text;
  status = getProp(xml, 'Status')?.text;
  transition = Transition.fromXml(getProp(xml, 'Transition'));
}