ClusterDbRevision.fromXml constructor

ClusterDbRevision.fromXml(
  1. XmlElement elem
)

Implementation

factory ClusterDbRevision.fromXml(_s.XmlElement elem) {
  return ClusterDbRevision(
    clusterIdentifier: _s.extractXmlStringValue(elem, 'ClusterIdentifier'),
    currentDatabaseRevision:
        _s.extractXmlStringValue(elem, 'CurrentDatabaseRevision'),
    databaseRevisionReleaseDate:
        _s.extractXmlDateTimeValue(elem, 'DatabaseRevisionReleaseDate'),
    revisionTargets: _s.extractXmlChild(elem, 'RevisionTargets')?.let(
        (elem) => elem
            .findElements('RevisionTarget')
            .map((c) => RevisionTarget.fromXml(c))
            .toList()),
  );
}