code: public void marshall(NetworkConnectionAction networkConnectionAction, ProtocolMarshaller protocolMarshaller) {
  
          if (networkConnectionAction == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(networkConnectionAction.getBlocked(), BLOCKED_BINDING);
              protocolMarshaller.marshall(networkConnectionAction.getConnectionDirection(), CONNECTIONDIRECTION_BINDING);
              protocolMarshaller.marshall(networkConnectionAction.getLocalPortDetails(), LOCALPORTDETAILS_BINDING);
              protocolMarshaller.marshall(networkConnectionAction.getProtocol(), PROTOCOL_BINDING);
              protocolMarshaller.marshall(networkConnectionAction.getRemoteIpDetails(), REMOTEIPDETAILS_BINDING);
              protocolMarshaller.marshall(networkConnectionAction.getRemotePortDetails(), REMOTEPORTDETAILS_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.