docs: private static JSONObject parseBounds(Bounds bounds) throws JSONException {
          if (bounds != null) {
              JSONObject boundsObject = new JSONObject();
              JSONObject lowerRight = new JSONObject();
              JSONObject upperLeft = new JSONObject();
  
              lowerRight.put("x",
                             bounds.getLowerRight().getX().doubleValue());
              lowerRight.put("y",
                             bounds.getLowerRight().getY().doubleValue());
  
              upperLeft.put("x",
                            bounds.getUpperLeft().getX().doubleValue());
              upperLeft.put("y",
                            bounds.getUpperLeft().getY().doubleValue());
  
              boundsObject.put("lowerRight",
                               lowerRight);
              boundsObject.put("upperLeft",
                               upperLeft);
  
              return boundsObject;
          }
  
          return new JSONObject();
      }