NostrNotice.fromRelayMessage constructor
NostrNotice.fromRelayMessage(
- String data
Implementation
factory NostrNotice.fromRelayMessage(String data) {
assert(canBeDeserializedNotice(data));
final decoded = jsonDecode(data) as List;
assert(decoded.first == NostrConstants.notice);
final message = decoded[1] as String;
return NostrNotice(message: message);
}