code: public void marshall(Block block, ProtocolMarshaller protocolMarshaller) {
  
          if (block == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(block.getBlockType(), BLOCKTYPE_BINDING);
              protocolMarshaller.marshall(block.getConfidence(), CONFIDENCE_BINDING);
              protocolMarshaller.marshall(block.getText(), TEXT_BINDING);
              protocolMarshaller.marshall(block.getRowIndex(), ROWINDEX_BINDING);
              protocolMarshaller.marshall(block.getColumnIndex(), COLUMNINDEX_BINDING);
              protocolMarshaller.marshall(block.getRowSpan(), ROWSPAN_BINDING);
              protocolMarshaller.marshall(block.getColumnSpan(), COLUMNSPAN_BINDING);
              protocolMarshaller.marshall(block.getGeometry(), GEOMETRY_BINDING);
              protocolMarshaller.marshall(block.getId(), ID_BINDING);
              protocolMarshaller.marshall(block.getRelationships(), RELATIONSHIPS_BINDING);
              protocolMarshaller.marshall(block.getEntityTypes(), ENTITYTYPES_BINDING);
              protocolMarshaller.marshall(block.getSelectionStatus(), SELECTIONSTATUS_BINDING);
              protocolMarshaller.marshall(block.getPage(), PAGE_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.