enrichedDocument method

  1. @override
Future<Map<String, Object?>> enrichedDocument(
  1. Map<String, Object?> theDocument
)
override

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;
}