ReplicationRule.fromXml constructor
ReplicationRule.fromXml(
- XmlElement? xml
Implementation
ReplicationRule.fromXml(XmlElement? xml) {
deleteMarkerReplication = DeleteMarkerReplication.fromXml(
getProp(xml, 'DeleteMarkerReplication'));
destination = Destination.fromXml(getProp(xml, 'Destination'));
existingObjectReplication = ExistingObjectReplication.fromXml(
getProp(xml, 'ExistingObjectReplication'));
filter = ReplicationRuleFilter.fromXml(getProp(xml, 'Filter'));
iD = getProp(xml, 'ID')?.text;
prefix = getProp(xml, 'Prefix')?.text;
priority = int.tryParse(getProp(xml, 'Priority')!.text);
sourceSelectionCriteria = SourceSelectionCriteria.fromXml(
getProp(xml, 'SourceSelectionCriteria'));
status = getProp(xml, 'Status')?.text;
}