exportJsonSync method

List<Map<String, dynamic>> exportJsonSync()

Export the results of this query as json.

Implementation

List<Map<String, dynamic>> exportJsonSync() {
  return exportJsonRawSync((Uint8List bytes) {
    final json = jsonDecode(const Utf8Decoder().convert(bytes)) as List;
    return json.cast<Map<String, dynamic>>();
  });
}