toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (peerExternalGateway != null)
        'peerExternalGateway': peerExternalGateway!,
      if (peerGcpGateway != null) 'peerGcpGateway': peerGcpGateway!,
      if (state != null) 'state': state!,
      if (tunnels != null) 'tunnels': tunnels!,
    };