/* 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{property as t,subclass as o}from"../../core/accessorSupport/decorators.js";import{ensureType as s}from"../../core/accessorSupport/ensureType.js";import a from"../../geometry/SpatialReference.js";let i=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?.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}}}}})],i.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}}}})],i.prototype,"categories",void 0),r([t({type:String,json:{read:{source:"sourceCountry"},write:{target:"sourceCountry"}}})],i.prototype,"countryCode",void 0),r([t({type:String,json:{write:!0}})],i.prototype,"locationType",void 0),r([t({type:a,json:{read:{source:"outSR"},write:{target:"outSR"}}})],i.prototype,"outSpatialReference",void 0),i=r([o("esri.rest.support.AddressesToLocationsParameters")],i),i.from=s(i);const p=i;export{p as default};
