DescribeLoadBalancerTargetGroupsResponse.fromXml constructor

DescribeLoadBalancerTargetGroupsResponse.fromXml(
  1. XmlElement elem
)

Implementation

factory DescribeLoadBalancerTargetGroupsResponse.fromXml(_s.XmlElement elem) {
  return DescribeLoadBalancerTargetGroupsResponse(
    loadBalancerTargetGroups: _s
        .extractXmlChild(elem, 'LoadBalancerTargetGroups')
        ?.let((elem) => elem
            .findElements('member')
            .map((c) => LoadBalancerTargetGroupState.fromXml(c))
            .toList()),
    nextToken: _s.extractXmlStringValue(elem, 'NextToken'),
  );
}