docs: public String toJson() {
      GsonBuilder gson = new GsonBuilder();
      gson.registerTypeAdapterFactory(DirectionsAdapterFactory.create());
      gson.registerTypeAdapter(Point.class, new PointAsCoordinatesTypeAdapter());
      return gson.create().toJson(this);
    }