parseJsonExtended function

Mapping parseJsonExtended(
  1. Object? json, {
  2. Map<String, Map>? otherMaps,
  3. Object? mapUrl,
})

Parses a source map or source map bundle.

mapUrl, which may be either a String or a Uri, indicates the URL of the source map file itself. If it's passed, any URLs in the source map will be interpreted as relative to this URL when generating spans.

Implementation

Mapping parseJsonExtended(/*List|Map*/ Object? json,
    {Map<String, Map>? otherMaps, /*String|Uri*/ Object? mapUrl}) {
  if (json is List) {
    return MappingBundle.fromJson(json, mapUrl: mapUrl);
  }
  return parseJson(json as Map);
}