/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{__decorate as e}from"tslib";import{ClonableMixin as r}from"../../core/Clonable.js";import{JSONSupport as o}from"../../core/JSONSupport.js";import{property as t,subclass as s}from"../../core/accessorSupport/decorators.js";import{Integer as p}from"../../core/accessorSupport/ensureType.js";import i from"../../geometry/SpatialReference.js";import{getJsonType as m}from"../../geometry/support/jsonTypeUtils.js";import{geometryTypes as a}from"../../geometry/support/typeUtils.js";import{writer as l}from"../../core/accessorSupport/decorators/writer.js";let c=class extends(r(o)){constructor(e){super(e),this.geometries=[],this.rasterIds=null,this.outSpatialReference=null}writeGeometries(e,r,o){r.geometries=e?.length?{geometryType:m(e[0]),geometries:e.map(e=>({...e.toJSON(),spatialReference:void 0}))}:null}};e([t({types:[a]})],c.prototype,"geometries",void 0),e([l("geometries")],c.prototype,"writeGeometries",null),e([t({type:[p],json:{write:!0}})],c.prototype,"rasterIds",void 0),e([t({type:i,json:{name:"outSR",write:!0}})],c.prototype,"outSpatialReference",void 0),c=e([s("esri.rest.support.ImageToMapMultirayParameters")],c);export{c as default};
