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