code: public void marshall(WorkspaceImage workspaceImage, ProtocolMarshaller protocolMarshaller) {
  
          if (workspaceImage == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(workspaceImage.getImageId(), IMAGEID_BINDING);
              protocolMarshaller.marshall(workspaceImage.getName(), NAME_BINDING);
              protocolMarshaller.marshall(workspaceImage.getDescription(), DESCRIPTION_BINDING);
              protocolMarshaller.marshall(workspaceImage.getOperatingSystem(), OPERATINGSYSTEM_BINDING);
              protocolMarshaller.marshall(workspaceImage.getState(), STATE_BINDING);
              protocolMarshaller.marshall(workspaceImage.getRequiredTenancy(), REQUIREDTENANCY_BINDING);
              protocolMarshaller.marshall(workspaceImage.getErrorCode(), ERRORCODE_BINDING);
              protocolMarshaller.marshall(workspaceImage.getErrorMessage(), ERRORMESSAGE_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.