Future<bool> setJSON(String key, dynamic jsonVal) { String jsonString = jsonEncode(jsonVal); return prefs!.setString(key, jsonString); }