GlobalReplicationGroup.fromXml constructor
GlobalReplicationGroup.fromXml(
- XmlElement elem
Implementation
factory GlobalReplicationGroup.fromXml(_s.XmlElement elem) {
return GlobalReplicationGroup(
arn: _s.extractXmlStringValue(elem, 'ARN'),
atRestEncryptionEnabled:
_s.extractXmlBoolValue(elem, 'AtRestEncryptionEnabled'),
authTokenEnabled: _s.extractXmlBoolValue(elem, 'AuthTokenEnabled'),
cacheNodeType: _s.extractXmlStringValue(elem, 'CacheNodeType'),
clusterEnabled: _s.extractXmlBoolValue(elem, 'ClusterEnabled'),
engine: _s.extractXmlStringValue(elem, 'Engine'),
engineVersion: _s.extractXmlStringValue(elem, 'EngineVersion'),
globalNodeGroups: _s.extractXmlChild(elem, 'GlobalNodeGroups')?.let(
(elem) => elem
.findElements('GlobalNodeGroup')
.map((c) => GlobalNodeGroup.fromXml(c))
.toList()),
globalReplicationGroupDescription:
_s.extractXmlStringValue(elem, 'GlobalReplicationGroupDescription'),
globalReplicationGroupId:
_s.extractXmlStringValue(elem, 'GlobalReplicationGroupId'),
members: _s.extractXmlChild(elem, 'Members')?.let((elem) => elem
.findElements('GlobalReplicationGroupMember')
.map((c) => GlobalReplicationGroupMember.fromXml(c))
.toList()),
status: _s.extractXmlStringValue(elem, 'Status'),
transitEncryptionEnabled:
_s.extractXmlBoolValue(elem, 'TransitEncryptionEnabled'),
);
}