/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{__decorate as t}from"tslib";import{JSONSupport as e}from"../../../../core/JSONSupport.js";import{property as r,subclass as o}from"../../../../core/accessorSupport/decorators.js";import{ensureClass as i}from"../../../../core/accessorSupport/ensureType.js";import s from"../../../../geometry/SpatialReference.js";import{writer as p}from"../../../../core/accessorSupport/decorators/writer.js";var n;let l=n=class extends e{static from(t){return i(n,t)}constructor(t){super(t),this.circuitNames=null,this.resultTypes=null,this.exportAcknowledgement=!1,this.moment=null,this.outSpatialReference=null,this.domainNetworkName=null,this.gdbVersion=null,this.sessionId=null}writeOutSR(t,e,r){if(null!=t){const{wkid:o,latestWkid:i,wkt:s,wkt2:p}=t;e[r]=JSON.stringify({wkid:o??void 0,latestWkid:i??void 0,wkt:s??void 0,wkt2:p??void 0})}}};t([r({json:{type:[String],write:{writer:(t,e)=>e.circuits=JSON.stringify(t??[])},read:{source:"circuits"}}})],l.prototype,"circuitNames",void 0),t([r({json:{type:[Object],write:{writer:(t,e)=>e.resultTypes=JSON.stringify(t??[])}}})],l.prototype,"resultTypes",void 0),t([r({json:{type:Boolean,write:!0}})],l.prototype,"exportAcknowledgement",void 0),t([r({type:Date,json:{type:Number,write:{writer:(t,e)=>{e.moment=t?t.getTime():null}}}})],l.prototype,"moment",void 0),t([r({type:s,json:{write:{allowNull:!0,target:"outSR"}}})],l.prototype,"outSpatialReference",void 0),t([p("outSpatialReference")],l.prototype,"writeOutSR",null),t([r({type:String,json:{write:!0}})],l.prototype,"domainNetworkName",void 0),t([r({type:String,json:{write:!0}})],l.prototype,"gdbVersion",void 0),t([r({type:String,json:{write:!0}})],l.prototype,"sessionId",void 0),l=n=t([o("esri.rest.networks.circuits.support.ExportCircuitsParameters")],l);const u=l;export{u as default};
