toEvent method

Nip01Event toEvent()

Implementation

Nip01Event toEvent() {
  return Nip01Event(
    pubKey: pubKey,
    kind: ContactList.KIND,
    tags: contactsToJson()
      ..addAll(tagListToJson(followedTags, "t"))
      ..addAll(tagListToJson(followedCommunities, "a"))
      ..addAll(tagListToJson(followedEvents, "e")),
    content: "",
    createdAt: createdAt,
  );
}