code: public static <T extends Option> T fromJSON(String json, Class<T> type) {
          Gson gson = new GsonBuilder().setPrettyPrinting().
                  registerTypeAdapter(Series.class, new SeriesDeserializer()).
                  registerTypeAdapter(Axis.class, new AxisDeserializer()).create();
          return gson.fromJson(json, type);
      }
docs: 反序列化
  
  @param json
  @param type
  @param <T>
  @return