isEvent static method

bool isEvent(
  1. Map<String, dynamic> payload
)

PrismaEvent payload is PrismaEvent.

Implementation

static bool isEvent(Map<String, dynamic> payload) {
  return (PrismaLogEvent.isLogEvent(payload) ||
          PrismaQueryEvent.isQueryEvent(payload)) &&
      payload['timestamp'] != null &&
      payload['target'] != null;
}