toJson method
Returns the Event object as a JSON object
Implementation
Map<String, dynamic> toJson() {
return {
'id': id,
'pubkey': pubKey,
'created_at': createdAt,
'kind': kind,
'tags': tags,
'content': content,
'sig': sig
};
}