getJson method

Future<InspectionResult> getJson(
  1. String path
)

Fetches a URL and tries to parse the response as JSON.

Implementation

Future<InspectionResult> getJson(String path) async {
  return request(
    'GET',
    path,
    options: const DevRequestOptions(
      headers: {'Accept': 'application/json'},
      isJson: true,
    ),
  );
}