json static method
Asynchronously compresses a JSON object using efficient encoding.
This method runs the compression in a separate isolate using compute.
Returns a Future<Uint8List>
containing the compressed data.
Implementation
static Future<Uint8List> json(Map<String, dynamic> json) {
return compute(_shrinkJsonIsolate, json);
}