isEvent static method
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;
}