@protected Future<void> writeValue(String fileName, T toWrite) async { return (await _container(fileName)) .write(json.encode((_toJson ?? (value) => {'value': value})(toWrite))); }