/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{__decorate as t}from"tslib";import{ClonableMixin as e}from"../../core/Clonable.js";import{JSONSupport as o}from"../../core/JSONSupport.js";import{property as r,subclass as s}from"../../core/accessorSupport/decorators.js";import p from"../../geometry/SpatialReference.js";import{getJsonType as i}from"../../geometry/support/jsonTypeUtils.js";import{fromJSON as m}from"../../geometry/support/jsonUtils.js";import{geometryTypes as a}from"../../geometry/support/typeUtils.js";import{writer as n}from"../../core/accessorSupport/decorators/writer.js";let l=class extends(e(o)){constructor(t){super(t),this.geometry=null,this.rasterId=null,this.outSpatialReference=null,this.depthOffset=0,this.adjust=!1}writeGeometry(t,e,o){null!=t&&(e.geometryType=i(t),e[o]={...t.toJSON(),spatialReference:void 0})}};t([r({types:a,json:{read:m,write:!0}})],l.prototype,"geometry",void 0),t([n("geometry")],l.prototype,"writeGeometry",null),t([r({json:{write:!0}})],l.prototype,"rasterId",void 0),t([r({type:p,json:{name:"outSR",write:!0}})],l.prototype,"outSpatialReference",void 0),t([r({json:{name:"options.DOff",write:!0}})],l.prototype,"depthOffset",void 0),t([r({json:{name:"options.Adjust",write:!0}})],l.prototype,"adjust",void 0),l=t([s("esri.rest.support.ImageToMapParameters")],l);export{l as default};
