encode method
Implementation
@override
Future<Map<String, dynamic>> encode(dynamic content) async {
if (content is! IntentContent) {
throw const FormatException('Content must be IntentContent');
}
final jsonBytes = utf8.encode(jsonEncode(content.toJson()));
return {
'content': Uint8List.fromList(jsonBytes),
'parameters': <String, String>{},
};
}