UpdateTarget.fromXml constructor

UpdateTarget.fromXml(
  1. XmlElement elem
)

Implementation

factory UpdateTarget.fromXml(_s.XmlElement elem) {
  return UpdateTarget(
    databaseVersion: _s.extractXmlStringValue(elem, 'DatabaseVersion'),
    maintenanceTrackName:
        _s.extractXmlStringValue(elem, 'MaintenanceTrackName'),
    supportedOperations: _s.extractXmlChild(elem, 'SupportedOperations')?.let(
        (elem) => elem
            .findElements('SupportedOperation')
            .map((c) => SupportedOperation.fromXml(c))
            .toList()),
  );
}