writeGeometryObject(geometry, options) {
    return writeGeometry(geometry, this.adaptOptions(options));
  }
Encode a geometry as a EsriJSON object.

@param {import("../geom/Geometry.js").default} geometry Geometry.
@param {import("./Feature.js").WriteOptions} [options] Write options.
@return {EsriJSONGeometry} Object.
@api
@override