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')?.text;
includedObjectVersions = getProp(xml, 'IncludedObjectVersions')?.text;
isEnabled = getProp(xml, 'IsEnabled')?.text.toUpperCase() == 'TRUE';
optionalFields = getProp(xml, 'OptionalFields')?.text;
schedule = InventorySchedule.fromXml(getProp(xml, 'Schedule'));
}