@Override
                    public PackageInfo deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)
                            throws JsonParseException {
                      if (json.isJsonObject() && json.getAsJsonObject().size() == 0) {
                        return PackageInfo.EMPTY;
                      }
                      return defaultGson.fromJson(json, typeOfT);
                    }
@Override
                    public PackageInfo deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)