/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{__decorate as r}from"tslib";import{JSONSupport as e}from"../../core/JSONSupport.js";import{clone as o}from"../../core/lang.js";import{property as t,subclass as s}from"../../core/accessorSupport/decorators.js";import{getJsonType as p}from"../../geometry/support/jsonTypeUtils.js";import{fromJSON as m}from"../../geometry/support/jsonUtils.js";import{geometryTypes as i}from"../../geometry/support/typeUtils.js";import{writer as a}from"../../core/accessorSupport/decorators/writer.js";var y;let c=y=class extends e{constructor(r){super(r),this.geometry=null,this.rasterId=void 0}writeGeometry(r,e,o){null!=r&&(e.geometryType=p(r),e[o]={...r.toJSON(),spatialReference:void 0})}clone(){const r=o({geometry:this.geometry,rasterId:this.rasterId});return new y(r)}};r([t({types:i,json:{name:"fromGeometry",read:m,write:!0}})],c.prototype,"geometry",void 0),r([a("geometry")],c.prototype,"writeGeometry",null),r([t({json:{write:!0}})],c.prototype,"rasterId",void 0),c=y=r([s("esri.rest.support.MeasureFromImageParameters")],c);export{c as default};
