code: def get_is_notification(self, obj):
          
          try:
              o = compat_serializer_attr(self, obj)
              return o.is_notification
          except Exception:
              return False
docs: We say if the message should trigger a notification