toEvent method

Nip01Event toEvent()

convert to nip01 event

Implementation

Nip01Event toEvent() {
  return Nip01Event(
      pubKey: pubKey,
      content: jsonEncode(toJson()),
      kind: KIND,
      tags: [],
      createdAt: updatedAt ?? 0);
}