Future<bool> setJson(String key, dynamic value) { String jsonString = jsonEncode(value); return _prefs.setString(key, jsonString); }