GlobalReplicationGroupMember.fromXml constructor

GlobalReplicationGroupMember.fromXml(
  1. XmlElement elem
)

Implementation

factory GlobalReplicationGroupMember.fromXml(_s.XmlElement elem) {
  return GlobalReplicationGroupMember(
    automaticFailover: _s
        .extractXmlStringValue(elem, 'AutomaticFailover')
        ?.toAutomaticFailoverStatus(),
    replicationGroupId: _s.extractXmlStringValue(elem, 'ReplicationGroupId'),
    replicationGroupRegion:
        _s.extractXmlStringValue(elem, 'ReplicationGroupRegion'),
    role: _s.extractXmlStringValue(elem, 'Role'),
    status: _s.extractXmlStringValue(elem, 'Status'),
  );
}