decode method
Implementation
@override
Future<Reaction> decode(EncodedContent encodedContent) async {
try {
final jsonString = utf8.decode(encodedContent.content);
final Map<String, dynamic> reactionData = jsonDecode(jsonString);
return Reaction.fromJson(reactionData);
} catch (e) {
throw FormatException('Failed to decode reaction: $e');
}
}