code: public void marshall(TreatmentResource treatmentResource, ProtocolMarshaller protocolMarshaller) {
  
          if (treatmentResource == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(treatmentResource.getId(), ID_BINDING);
              protocolMarshaller.marshall(treatmentResource.getMessageConfiguration(), MESSAGECONFIGURATION_BINDING);
              protocolMarshaller.marshall(treatmentResource.getSchedule(), SCHEDULE_BINDING);
              protocolMarshaller.marshall(treatmentResource.getSizePercent(), SIZEPERCENT_BINDING);
              protocolMarshaller.marshall(treatmentResource.getState(), STATE_BINDING);
              protocolMarshaller.marshall(treatmentResource.getTreatmentDescription(), TREATMENTDESCRIPTION_BINDING);
              protocolMarshaller.marshall(treatmentResource.getTreatmentName(), TREATMENTNAME_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.