canBeDeserialized static method

bool canBeDeserialized(
  1. String dataFromRelay
)

Implementation

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

  return decoded.first == NostrConstants.eose;
}