code: public void marshall(ErrorRootCauseService errorRootCauseService, ProtocolMarshaller protocolMarshaller) {
  
          if (errorRootCauseService == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(errorRootCauseService.getName(), NAME_BINDING);
              protocolMarshaller.marshall(errorRootCauseService.getNames(), NAMES_BINDING);
              protocolMarshaller.marshall(errorRootCauseService.getType(), TYPE_BINDING);
              protocolMarshaller.marshall(errorRootCauseService.getAccountId(), ACCOUNTID_BINDING);
              protocolMarshaller.marshall(errorRootCauseService.getEntityPath(), ENTITYPATH_BINDING);
              protocolMarshaller.marshall(errorRootCauseService.getInferred(), INFERRED_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.