NodeGroupMember.fromXml constructor

NodeGroupMember.fromXml(
  1. XmlElement elem
)

Implementation

factory NodeGroupMember.fromXml(_s.XmlElement elem) {
  return NodeGroupMember(
    cacheClusterId: _s.extractXmlStringValue(elem, 'CacheClusterId'),
    cacheNodeId: _s.extractXmlStringValue(elem, 'CacheNodeId'),
    currentRole: _s.extractXmlStringValue(elem, 'CurrentRole'),
    preferredAvailabilityZone:
        _s.extractXmlStringValue(elem, 'PreferredAvailabilityZone'),
    preferredOutpostArn:
        _s.extractXmlStringValue(elem, 'PreferredOutpostArn'),
    readEndpoint: _s
        .extractXmlChild(elem, 'ReadEndpoint')
        ?.let((e) => Endpoint.fromXml(e)),
  );
}