canBeDeserializedNotice static method

bool canBeDeserializedNotice(
  1. String dataFromRelay
)

Implementation

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

  return decoded.first == NostrConstants.notice;
}