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