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')?.innerText;
prefix = getProp(xml, 'Prefix')?.innerText;
priority = int.tryParse(getProp(xml, 'Priority')!.innerText);
sourceSelectionCriteria = SourceSelectionCriteria.fromXml(
getProp(xml, 'SourceSelectionCriteria'),
);
status = getProp(xml, 'Status')?.innerText;
}