encode method
Implementation
@override
Future<Map<String, dynamic>> encode(dynamic content) async {
if (content is! GroupUpdated) {
throw const FormatException('Content must be GroupUpdated');
}
// Serialize protobuf to bytes
return {
'content': Uint8List.fromList(content.writeToBuffer()),
'parameters': <String, dynamic>{},
};
}