public static Option fromJSON(String json) {
        Gson gson = new GsonBuilder().setPrettyPrinting().
                registerTypeAdapter(Series.class, new SeriesDeserializer()).
                registerTypeAdapter(Axis.class, new AxisDeserializer()).create();
        Option option = gson.fromJson(json, Option.class);
        return option;
    }
public static Option fromJSON ( String json ) { Gson gson = new GsonBuilder ( ) . setPrettyPrinting ( ) . registerTypeAdapter ( Series . class , new SeriesDeserializer ( ) ) . registerTypeAdapter ( Axis . class , new AxisDeserializer ( ) ) . create ( ) ; Option option = gson . fromJson ( json , Option . class ) ; return option ; }
反序列化

@param json
@return