/* 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 o,subclass as r}from"../../../../core/accessorSupport/decorators.js";import{ensureClass as s}from"../../../../core/accessorSupport/ensureType.js";import{writer as i}from"../../../../core/accessorSupport/decorators/writer.js";var p;let n=p=class extends e{static from(t){return s(p,t)}constructor(t){super(t),this.objects=null,this.moment=null,this.gdbVersion=null,this.sessionId=null}writeObjects(t,e){const o=new Map;t.forEach(t=>{const{sourceId:e,globalId:r}=t,s=o.get(e);s?s.push(r):o.set(e,[r])}),e.objects=Array.from(o,([t,e])=>({sourceId:t,globalIds:e}))}};t([o({json:{type:[Object],write:!0}})],n.prototype,"objects",void 0),t([i("objects")],n.prototype,"writeObjects",null),t([o({type:Date,json:{type:Number,write:{writer:(t,e)=>{e.moment=t?t.getTime():null}}}})],n.prototype,"moment",void 0),t([o({type:String,json:{write:!0}})],n.prototype,"gdbVersion",void 0),t([o({type:String,json:{write:!0}})],n.prototype,"sessionId",void 0),n=p=t([r("esri.rest.networks.unitIdentifiers.support.QueryUnitIdentifiersParameters")],n);const c=n;export{c as default};
