Future<void> save(List<T> list, {bool isPretty = true}) async { final jsonList = list.map((e) => toMap(e)).toList(); await io.write(path, JsonEncoder.withIndent(' ').convert(jsonList)); notify(); }