code: @Nullable
      public static <T> T getJson(@NonNull SharedPreferences prefs,
              @NonNull String key, @NonNull Type type) {
          return GsonHelper.fromJson(prefs.getString(key, null), type);
      }
docs: Retrieves object stored as json encoded string.
  Gson library should be available in classpath.