parseJson static method

Future<Map<String, HitMap>> parseJson(
  1. List<Map<String, dynamic>> jsonResult, {
  2. bool checkIgnoredLines = false,
  3. @Deprecated('Use packagePath') String? packagesPath,
  4. String? packagePath,
})

Creates a single hitmap from a raw json object.

Throws away all entries that are not resolvable.

Implementation

static Future<Map<String, HitMap>> parseJson(
  List<Map<String, dynamic>> jsonResult, {
  bool checkIgnoredLines = false,
  @Deprecated('Use packagePath') String? packagesPath,
  String? packagePath,
}) async {
  final resolver = await Resolver.create(
      packagesPath: packagesPath, packagePath: packagePath);
  return parseJsonSync(jsonResult,
      checkIgnoredLines: checkIgnoredLines,
      ignoredLinesInFilesCache: {},
      resolver: resolver);
}