@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
3 lines (2 loc) • 1.13 kB
JavaScript
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */
import{__decorate as r}from"tslib";import{isSome as e}from"../../core/arrayUtils.js";import{JSONSupport as t}from"../../core/JSONSupport.js";import{property as o,subclass as s}from"../../core/accessorSupport/decorators.js";import{ensureType as i}from"../../core/accessorSupport/ensureType.js";import{fromJSON as p}from"../../geometry/support/jsonUtils.js";let l=class extends t{constructor(r){super(r),this.geometries1=null,this.geometries2=null,this.relation=null,this.relationParameter=null}};r([o({json:{read:{reader:r=>r?r.map(r=>p(r)).filter(e):null},write:{writer:(r,e)=>{e.geometries1=r?.map(r=>r.toJSON())??null}}}})],l.prototype,"geometries1",void 0),r([o({json:{read:{reader:r=>r?r.map(r=>p(r)).filter(e):null},write:{writer:(r,e)=>{e.geometries2=r?.map(r=>r.toJSON())??null}}}})],l.prototype,"geometries2",void 0),r([o({type:String,json:{write:!0}})],l.prototype,"relation",void 0),r([o({type:String,json:{write:!0}})],l.prototype,"relationParameter",void 0),l=r([s("esri.rest.support.RelationParameters")],l),l.from=i(l);const a=l;export{a as default};