@override Packet encode(Event event) { event.packPayload(); return Uint8List.fromList(utf8.encode(jsonEncode(event))); }