/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{__decorate as t}from"tslib";import{JSONSupport as e}from"../../../../core/JSONSupport.js";import{property as o,subclass as r}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.circuits=null,this.exportAcknowledgement=!1,this.moment=null,this.outSpatialReference=null,this.domainNetworkName=null,this.gdbVersion=null,this.sessionId=null}writeOutSR(t,e,o){if(null!=t){const{wkid:r,latestWkid:i,wkt:s,wkt2:p}=t;e[o]=JSON.stringify({wkid:r??void 0,latestWkid:i??void 0,wkt:s??void 0,wkt2:p??void 0})}}};t([o({json:{type:[String],write:!0}})],l.prototype,"circuits",void 0),t([o({json:{type:Boolean,write:!0}})],l.prototype,"exportAcknowledgement",void 0),t([o({type:Date,json:{type:Number,write:{writer:(t,e)=>{e.moment=t?t.getTime():null}}}})],l.prototype,"moment",void 0),t([o({type:s,json:{write:{allowNull:!0,target:"outSR"}}})],l.prototype,"outSpatialReference",void 0),t([p("outSpatialReference")],l.prototype,"writeOutSR",null),t([o({type:String,json:{write:!0}})],l.prototype,"domainNetworkName",void 0),t([o({type:String,json:{write:!0}})],l.prototype,"gdbVersion",void 0),t([o({type:String,json:{write:!0}})],l.prototype,"sessionId",void 0),l=n=t([r("esri.rest.networks.circuits.support.ExportCircuitsParameters")],l);const c=l;export{c as default};
