RollbackConfiguration.fromXml constructor

RollbackConfiguration.fromXml(
  1. XmlElement elem
)

Implementation

factory RollbackConfiguration.fromXml(_s.XmlElement elem) {
  return RollbackConfiguration(
    monitoringTimeInMinutes:
        _s.extractXmlIntValue(elem, 'MonitoringTimeInMinutes'),
    rollbackTriggers: _s.extractXmlChild(elem, 'RollbackTriggers')?.let(
        (elem) => elem
            .findElements('member')
            .map((c) => RollbackTrigger.fromXml(c))
            .toList()),
  );
}