code: @Override
      public JSONObject toJSON() throws JSONException {
          JSONObject json = super.toJSON();
  
          JSONArray geometries = new JSONArray();
          for (Geometry geometry : this.mGeometries) {
              geometries.put(geometry.toJSON());
          }
  
          json.put(JSON_GEOMETRIES, geometries);
  
          return json;
      }
docs: {@inheritDoc}