manifest method

Future<Map<String, dynamic>> manifest()

Fetches the served directory manifest as a JSON map. The node returns it as a (possibly gzipped) UTF-8 JSON payload.

Implementation

Future<Map<String, dynamic>> manifest() async {
  final reply = await _call(DriveOp.manifest);
  final json = DriveCompression.decodePayload(reply.header, reply.payload);
  return jsonDecode(utf8.decode(json)) as Map<String, dynamic>;
}