@override Future<bool> saveSession(Session session) { return SharedPreferences.getInstance().then((prefs) => prefs.setString( getObjectKey("Session"), jsonEncode(session.toJson()))); }