toEvent method
Implementation
@override
Future<Nip01Event> toEvent(EventSigner? signer) async {
Nip01Event event = await super.toEvent(signer);
List<dynamic> tags = [
["d", name]
];
if (Helpers.isNotBlank(image)) {
tags.add(["description", description]);
}
if (Helpers.isNotBlank(image)) {
tags.add(["image", image]);
}
tags.addAll(event.tags);
event.tags = castToListOfListOfString(tags);
return event;
}