fetchWithStructuredData function

Future<FetchResponse> fetchWithStructuredData(
  1. FetchOptions options,
  2. dynamic structuredData, {
  3. HttpxClient? httpxClient,
})

Implementation

Future<FetchResponse> fetchWithStructuredData(
  FetchOptions options,
  dynamic structuredData, {
  HttpxClient? httpxClient,
}) async {
  final fetchRequest = await fetch(options, httpxClient: httpxClient);

  return fetchRequest.writeStructuredData(structuredData);
}