parseJsonExtended function
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);
}