CacheNode.fromXml constructor

CacheNode.fromXml(
  1. XmlElement elem
)

Implementation

factory CacheNode.fromXml(_s.XmlElement elem) {
  return CacheNode(
    cacheNodeCreateTime:
        _s.extractXmlDateTimeValue(elem, 'CacheNodeCreateTime'),
    cacheNodeId: _s.extractXmlStringValue(elem, 'CacheNodeId'),
    cacheNodeStatus: _s.extractXmlStringValue(elem, 'CacheNodeStatus'),
    customerAvailabilityZone:
        _s.extractXmlStringValue(elem, 'CustomerAvailabilityZone'),
    customerOutpostArn: _s.extractXmlStringValue(elem, 'CustomerOutpostArn'),
    endpoint:
        _s.extractXmlChild(elem, 'Endpoint')?.let((e) => Endpoint.fromXml(e)),
    parameterGroupStatus:
        _s.extractXmlStringValue(elem, 'ParameterGroupStatus'),
    sourceCacheNodeId: _s.extractXmlStringValue(elem, 'SourceCacheNodeId'),
  );
}