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