enrichedDocument method
Implementation
@override
Future<Map<String, Object?>> enrichedDocument(
Map<String, Object?> theDocument) async {
if (url != null) {
var theUrl = Uri.parse(url!);
final response = await http.get(theUrl);
var bytes = response.bodyBytes.toList();
theDocument['extract'] = bytes.toList();
}
return theDocument;
}