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