code: public void marshall(AgentInfo agentInfo, ProtocolMarshaller protocolMarshaller) {
  
          if (agentInfo == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(agentInfo.getAgentId(), AGENTID_BINDING);
              protocolMarshaller.marshall(agentInfo.getHostName(), HOSTNAME_BINDING);
              protocolMarshaller.marshall(agentInfo.getAgentNetworkInfoList(), AGENTNETWORKINFOLIST_BINDING);
              protocolMarshaller.marshall(agentInfo.getConnectorId(), CONNECTORID_BINDING);
              protocolMarshaller.marshall(agentInfo.getVersion(), VERSION_BINDING);
              protocolMarshaller.marshall(agentInfo.getHealth(), HEALTH_BINDING);
              protocolMarshaller.marshall(agentInfo.getLastHealthPingTime(), LASTHEALTHPINGTIME_BINDING);
              protocolMarshaller.marshall(agentInfo.getCollectionStatus(), COLLECTIONSTATUS_BINDING);
              protocolMarshaller.marshall(agentInfo.getAgentType(), AGENTTYPE_BINDING);
              protocolMarshaller.marshall(agentInfo.getRegisteredTime(), REGISTEREDTIME_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.