code: public void marshall(TaskTimedOutEventDetails taskTimedOutEventDetails, ProtocolMarshaller protocolMarshaller) {
  
          if (taskTimedOutEventDetails == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(taskTimedOutEventDetails.getResourceType(), RESOURCETYPE_BINDING);
              protocolMarshaller.marshall(taskTimedOutEventDetails.getResource(), RESOURCE_BINDING);
              protocolMarshaller.marshall(taskTimedOutEventDetails.getError(), ERROR_BINDING);
              protocolMarshaller.marshall(taskTimedOutEventDetails.getCause(), CAUSE_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.