toEvent method
Implementation
Nip01Event toEvent() {
return Nip01Event(
pubKey: pubKey,
kind: Nip65.kKind,
tags: relays.entries.map((entry) {
ReadWriteMarker marker = entry.value;
List<String> list = ["r", entry.key];
if (marker == ReadWriteMarker.readOnly) {
list.add("read");
}
if (marker == ReadWriteMarker.writeOnly) {
list.add("write");
}
return list;
}).toList(),
content: "",
createdAt: createdAt,
);
}