/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["../../chunks/_rollupPluginBabelHelpers","../../chunks/tslib.es6","../../geometry","../../core/JSONSupport","../../core/accessorSupport/decorators/property","../../core/arrayUtils","../../core/has","../../core/accessorSupport/ensureType","../../core/accessorSupport/decorators/subclass","../../geometry/SpatialReference"],(function(e,r,t,o,s,a,c,p,u,n){"use strict";let i=function(r){function t(e){var t;return(t=r.call(this,e)||this).addresses=null,t.categories=null,t.countryCode=null,t.locationType=null,t.outSpatialReference=null,t}return e._inheritsLoose(t,r),t}(o.JSONSupport);r.__decorate([s.property({type:[Object],json:{read:{reader:e=>e&&e.records?e.records.map((e=>e.attributes)):null},write:{writer:(e,r)=>{const t=[];Array.isArray(e)&&e.forEach((e=>{t.push({attributes:e})})),r.addresses={records:t}}}}})],i.prototype,"addresses",void 0),r.__decorate([s.property({type:[String],json:{read:{source:"category",reader:e=>e?e.split(","):null},write:{target:"category",writer:(e,r)=>{r.category=e?e.join(","):null}}}})],i.prototype,"categories",void 0),r.__decorate([s.property({type:String,json:{read:{source:"sourceCountry"},write:{target:"sourceCountry"}}})],i.prototype,"countryCode",void 0),r.__decorate([s.property({type:String,json:{write:!0}})],i.prototype,"locationType",void 0),r.__decorate([s.property({type:n,json:{read:{source:"outSR"},write:{target:"outSR"}}})],i.prototype,"outSpatialReference",void 0),i=r.__decorate([u.subclass("esri.rest.support.AddressesToLocationsParameters")],i),i.from=p.ensureType(i);return i}));
