SnapshotSchedule.fromXml constructor

SnapshotSchedule.fromXml(
  1. XmlElement elem
)

Implementation

factory SnapshotSchedule.fromXml(_s.XmlElement elem) {
  return SnapshotSchedule(
    associatedClusterCount:
        _s.extractXmlIntValue(elem, 'AssociatedClusterCount'),
    associatedClusters: _s.extractXmlChild(elem, 'AssociatedClusters')?.let(
        (elem) => elem
            .findElements('ClusterAssociatedToSchedule')
            .map((c) => ClusterAssociatedToSchedule.fromXml(c))
            .toList()),
    nextInvocations: _s.extractXmlChild(elem, 'NextInvocations')?.let(
        (elem) => _s.extractXmlDateTimeListValues(elem, 'SnapshotTime')),
    scheduleDefinitions: _s.extractXmlChild(elem, 'ScheduleDefinitions')?.let(
        (elem) => _s.extractXmlStringListValues(elem, 'ScheduleDefinition')),
    scheduleDescription:
        _s.extractXmlStringValue(elem, 'ScheduleDescription'),
    scheduleIdentifier: _s.extractXmlStringValue(elem, 'ScheduleIdentifier'),
    tags: _s.extractXmlChild(elem, 'Tags')?.let((elem) =>
        elem.findElements('Tag').map((c) => Tag.fromXml(c)).toList()),
  );
}