VpnDetails.fromXml constructor

VpnDetails.fromXml(
  1. XmlElement elem
)

Implementation

factory VpnDetails.fromXml(_s.XmlElement elem) {
  return VpnDetails(
    vpnGatewayIp: _s.extractXmlStringValue(elem, 'VpnGatewayIp'),
    vpnId: _s.extractXmlStringValue(elem, 'VpnId'),
    vpnName: _s.extractXmlStringValue(elem, 'VpnName'),
    vpnPSK: _s.extractXmlStringValue(elem, 'VpnPSK'),
    vpnState: _s.extractXmlStringValue(elem, 'VpnState'),
    vpnTunnelOriginatorIP:
        _s.extractXmlStringValue(elem, 'VpnTunnelOriginatorIP'),
  );
}