/*
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","../../core/JSONSupport","../../core/maybe","../../core/accessorSupport/decorators/property","../../core/arrayUtils","../../core/has","../../core/accessorSupport/ensureType","../../core/accessorSupport/decorators/enumeration","../../core/accessorSupport/decorators/reader","../../core/accessorSupport/decorators/subclass","../../core/accessorSupport/decorators/writer","./NetworkDataset","./networkEnums","./TravelMode"],(function(e,t,r,o,a,n,p,u,c,i,s,d,l,m,_){"use strict";let y=function(t){function r(e){var r;return(r=t.call(this,e)||this).accumulateAttributeNames=null,r.currentVersion=null,r.defaultTravelMode=null,r.directionsLanguage=null,r.directionsLengthUnits=null,r.directionsSupportedLanguages=null,r.directionsTimeAttribute=null,r.hasZ=null,r.impedance=null,r.networkDataset=null,r.supportedTravelModes=null,r}e._inheritsLoose(r,t);var a=r.prototype;return a.readAccumulateAttributes=function(e){return o.isNone(e)?null:e.map((e=>m.impedanceAttributeNameJsonMap.fromJSON(e)))},a.writeAccumulateAttributes=function(e,t,r){!o.isNone(e)&&e.length&&(t[r]=e.map((e=>m.impedanceAttributeNameJsonMap.toJSON(e))))},r}(r.JSONSupport);t.__decorate([a.property()],y.prototype,"accumulateAttributeNames",void 0),t.__decorate([i.reader("accumulateAttributeNames")],y.prototype,"readAccumulateAttributes",null),t.__decorate([d.writer("accumulateAttributeNames")],y.prototype,"writeAccumulateAttributes",null),t.__decorate([a.property()],y.prototype,"currentVersion",void 0),t.__decorate([a.property()],y.prototype,"defaultTravelMode",void 0),t.__decorate([a.property()],y.prototype,"directionsLanguage",void 0),t.__decorate([c.enumeration(m.directionsLengthUnitJsonMap)],y.prototype,"directionsLengthUnits",void 0),t.__decorate([a.property()],y.prototype,"directionsSupportedLanguages",void 0),t.__decorate([c.enumeration(m.durationImpedanceAttributeNameJsonMap,{ignoreUnknown:!1})],y.prototype,"directionsTimeAttribute",void 0),t.__decorate([a.property()],y.prototype,"hasZ",void 0),t.__decorate([c.enumeration(m.impedanceAttributeNameJsonMap,{ignoreUnknown:!1})],y.prototype,"impedance",void 0),t.__decorate([a.property({type:l})],y.prototype,"networkDataset",void 0),t.__decorate([a.property({type:[_]})],y.prototype,"supportedTravelModes",void 0),y=t.__decorate([s.subclass("esri.rest.support.NetworkServiceDescription")],y);return y}));
