Type listType = new TypeToken<Subscriber>() {}.getType();
Subscriber data = new Gson().fromJson(response.body().get("data").toString().trim(), listType);
SharedPreferences.Editor editor = sharedpreferences.edit();
Gson gson = new Gson();
String json = gson.toJson(data);
editor.putString("subscriber", json);
editor.apply();