Endpoint.fromXml constructor

Endpoint.fromXml(
  1. XmlElement elem
)

Implementation

factory Endpoint.fromXml(_s.XmlElement elem) {
  return Endpoint(
    address: _s.extractXmlStringValue(elem, 'Address'),
    port: _s.extractXmlIntValue(elem, 'Port'),
    vpcEndpoints: _s.extractXmlChild(elem, 'VpcEndpoints')?.let((elem) => elem
        .findElements('SpartaProxyVpcEndpoint')
        .map((c) => SpartaProxyVpcEndpoint.fromXml(c))
        .toList()),
  );
}