code: public static List<TriggerDto> transformToDto(List<Trigger> triggers) {
          List<TriggerDto> result = new ArrayList<TriggerDto>();
  
          for (Trigger trigger : triggers) {
              result.add(transformToDto(trigger));
          }
          return result;
      }
docs: Converts list of trigger entity objects to list of triggerDto objects.
  
  @param   triggers  list of trigger entities.
  
  @return  list of triggerDto.