code: def create(self, trigger):
          
          data = self._serialize_object(trigger)
          if isinstance(trigger, FullTrigger):
              returned_dict = self._post(self._service_url(['triggers', 'trigger']), data)
              return FullTrigger(returned_dict)
          else:
              returned_dict = self._post(self._service_url('triggers'), data)
              return Trigger(returned_dict)
docs: Create a new trigger.
  
          :param trigger: FullTrigger or Trigger class to be created
          :return: The created trigger