canBeDeserializedEvent static method

bool canBeDeserializedEvent(
  1. String dataFromRelay
)

Implementation

static bool canBeDeserializedEvent(String dataFromRelay) {
  final decoded = jsonDecode(dataFromRelay) as List;

  return decoded.first == NostrConstants.event;
}