DBEngineVersion.fromXml constructor
DBEngineVersion.fromXml(
- XmlElement elem
Implementation
factory DBEngineVersion.fromXml(_s.XmlElement elem) {
return DBEngineVersion(
dBEngineDescription:
_s.extractXmlStringValue(elem, 'DBEngineDescription'),
dBEngineVersionDescription:
_s.extractXmlStringValue(elem, 'DBEngineVersionDescription'),
dBParameterGroupFamily:
_s.extractXmlStringValue(elem, 'DBParameterGroupFamily'),
defaultCharacterSet: _s
.extractXmlChild(elem, 'DefaultCharacterSet')
?.let((e) => CharacterSet.fromXml(e)),
engine: _s.extractXmlStringValue(elem, 'Engine'),
engineVersion: _s.extractXmlStringValue(elem, 'EngineVersion'),
exportableLogTypes: _s
.extractXmlChild(elem, 'ExportableLogTypes')
?.let((elem) => _s.extractXmlStringListValues(elem, 'member')),
status: _s.extractXmlStringValue(elem, 'Status'),
supportedCharacterSets: _s
.extractXmlChild(elem, 'SupportedCharacterSets')
?.let((elem) => elem
.findElements('CharacterSet')
.map((c) => CharacterSet.fromXml(c))
.toList()),
supportedEngineModes: _s
.extractXmlChild(elem, 'SupportedEngineModes')
?.let((elem) => _s.extractXmlStringListValues(elem, 'member')),
supportedFeatureNames: _s
.extractXmlChild(elem, 'SupportedFeatureNames')
?.let((elem) => _s.extractXmlStringListValues(elem, 'member')),
supportedNcharCharacterSets: _s
.extractXmlChild(elem, 'SupportedNcharCharacterSets')
?.let((elem) => elem
.findElements('CharacterSet')
.map((c) => CharacterSet.fromXml(c))
.toList()),
supportedTimezones: _s.extractXmlChild(elem, 'SupportedTimezones')?.let(
(elem) => elem
.findElements('Timezone')
.map((c) => Timezone.fromXml(c))
.toList()),
supportsGlobalDatabases:
_s.extractXmlBoolValue(elem, 'SupportsGlobalDatabases'),
supportsLogExportsToCloudwatchLogs:
_s.extractXmlBoolValue(elem, 'SupportsLogExportsToCloudwatchLogs'),
supportsParallelQuery:
_s.extractXmlBoolValue(elem, 'SupportsParallelQuery'),
supportsReadReplica: _s.extractXmlBoolValue(elem, 'SupportsReadReplica'),
validUpgradeTarget: _s.extractXmlChild(elem, 'ValidUpgradeTarget')?.let(
(elem) => elem
.findElements('UpgradeTarget')
.map((c) => UpgradeTarget.fromXml(c))
.toList()),
);
}