@doegis/core
Version:
DOE GIS API
3 lines (1 loc) • 1.45 kB
JavaScript
import{_ as r}from"../../chunks/tslib.es6.js";import"../../geometry.js";import{JSONSupport as e}from"../../core/JSONSupport.js";import{property as t}from"../../core/accessorSupport/decorators/property.js";import{ensureType as o}from"../../core/accessorSupport/ensureType.js";import"../../core/arrayUtils.js";import{subclass as s}from"../../core/accessorSupport/decorators/subclass.js";import a from"../../geometry/SpatialReference.js";let p=class extends e{constructor(r){super(r),this.addresses=null,this.categories=null,this.countryCode=null,this.locationType=null,this.outSpatialReference=null}};r([t({type:[Object],json:{read:{reader:r=>r&&r.records?r.records.map((r=>r.attributes)):null},write:{writer:(r,e)=>{const t=[];Array.isArray(r)&&r.forEach((r=>{t.push({attributes:r})})),e.addresses={records:t}}}}})],p.prototype,"addresses",void 0),r([t({type:[String],json:{read:{source:"category",reader:r=>r?r.split(","):null},write:{target:"category",writer:(r,e)=>{e.category=r?r.join(","):null}}}})],p.prototype,"categories",void 0),r([t({type:String,json:{read:{source:"sourceCountry"},write:{target:"sourceCountry"}}})],p.prototype,"countryCode",void 0),r([t({type:String,json:{write:!0}})],p.prototype,"locationType",void 0),r([t({type:a,json:{read:{source:"outSR"},write:{target:"outSR"}}})],p.prototype,"outSpatialReference",void 0),p=r([s("esri.rest.support.AddressesToLocationsParameters")],p),p.from=o(p);const i=p;export{i as default};