InventoryConfiguration.fromXml constructor
InventoryConfiguration.fromXml(
- XmlElement xml
Implementation
InventoryConfiguration.fromXml(XmlElement xml) {
destination = InventoryDestination.fromXml(getProp(xml, 'Destination'));
filter = InventoryFilter.fromXml(getProp(xml, 'Filter'));
id = getProp(xml, 'Id')?.value;
includedObjectVersions = getProp(xml, 'IncludedObjectVersions')?.value;
isEnabled = getProp(xml, 'IsEnabled')?.value?.toUpperCase() == 'TRUE';
optionalFields = getProp(xml, 'OptionalFields')?.value;
schedule = InventorySchedule.fromXml(getProp(xml, 'Schedule'));
}