code: def event_detail(self, event_detail):
          
          if event_detail is not None:
              if isinstance(event_detail, str):
                  self._event_detail = event_detail
              else:
                  try:
                      for key, val in event_detail.items():
                          if isinstance(val, date):
                              event_detail[key] = str(val)
                      self._event_detail = json.dumps(event_detail)
                  except TypeError:
                      raise TypeError('Passed in event detail object are not json serializable.Please check the format')
docs: :param event_detail:
          :return: