code: public void marshall(RepositoryTrigger repositoryTrigger, ProtocolMarshaller protocolMarshaller) {
  
          if (repositoryTrigger == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(repositoryTrigger.getName(), NAME_BINDING);
              protocolMarshaller.marshall(repositoryTrigger.getDestinationArn(), DESTINATIONARN_BINDING);
              protocolMarshaller.marshall(repositoryTrigger.getCustomData(), CUSTOMDATA_BINDING);
              protocolMarshaller.marshall(repositoryTrigger.getBranches(), BRANCHES_BINDING);
              protocolMarshaller.marshall(repositoryTrigger.getEvents(), EVENTS_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.