code: public void marshall(ThingDocument thingDocument, ProtocolMarshaller protocolMarshaller) {
  
          if (thingDocument == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(thingDocument.getThingName(), THINGNAME_BINDING);
              protocolMarshaller.marshall(thingDocument.getThingId(), THINGID_BINDING);
              protocolMarshaller.marshall(thingDocument.getThingTypeName(), THINGTYPENAME_BINDING);
              protocolMarshaller.marshall(thingDocument.getThingGroupNames(), THINGGROUPNAMES_BINDING);
              protocolMarshaller.marshall(thingDocument.getAttributes(), ATTRIBUTES_BINDING);
              protocolMarshaller.marshall(thingDocument.getShadow(), SHADOW_BINDING);
              protocolMarshaller.marshall(thingDocument.getConnectivity(), CONNECTIVITY_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.