/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import e from"../../core/Error.js";import{Integer as r,Null as t}from"../../core/accessorSupport/ensureType.js";import o from"../../time/TimeExtent.js";const m={type:o,json:{read:{source:"timeExtent",reader:e=>e?Array.isArray(e)?o.fromArray(e):o.fromJSON(e):null},write:{writer:(r,t,o,m)=>{r&&(r.isEmpty?m?.messages&&m.messages.push(new e("invalid-timeExtent","TimeExtent cannot be empty")):t[o]=r.toArray())},target:{timeExtent:{type:[[r,t]]}}}}};export{m as timeExtent};
