toJson method

Map<String, Object> toJson ()

Implementation

core.Map<core.String, core.Object> toJson() {
  final core.Map<core.String, core.Object> _json =
      new core.Map<core.String, core.Object>();
  if (peerExternalGateway != null) {
    _json["peerExternalGateway"] = peerExternalGateway;
  }
  if (peerGcpGateway != null) {
    _json["peerGcpGateway"] = peerGcpGateway;
  }
  if (state != null) {
    _json["state"] = (state).toJson();
  }
  if (tunnels != null) {
    _json["tunnels"] = tunnels.map((value) => (value).toJson()).toList();
  }
  return _json;
}