restoreJson function
Decompresses and parses JSON data that was compressed using shrinkJson.
This function first decompresses the data using restoreText to recover the JSON string, then parses it back into a Dart object using jsonDecode.
Returns the original Map<String, dynamic> that was compressed. Throws FormatException if the decompressed data is not valid JSON.
Implementation
Map<String, dynamic> restoreJson(Uint8List compressed) {
final minified = restoreText(compressed);
return jsonDecode(minified);
}