isEntityEvent method

bool isEntityEvent([
  1. String? entityType
])

Implementation

bool isEntityEvent([String? entityType]) {
  final b = pushEventsBody;
  if (b == null) return false;

  if (b.eventType == "ENTITY_UPDATED" || b.eventType == "ENTITY_DELETED" || b.eventType == "ENTITY_CREATED") {
    return entityType == null || entityType == b.payload!["entityType"];
  } else {
    return false;
  }
}