InventoryConfiguration.fromXml constructor

InventoryConfiguration.fromXml(
  1. XmlElement xml
)

Implementation

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