/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import o from"../Extent.js";import r from"../Geometry.js";import t from"../Multipoint.js";import e from"../Point.js";import i from"../Polygon.js";import m from"../Polyline.js";import{isPoint as n,isPolyline as s,isPolygon as l,isMultipoint as f,isExtent as p,getJsonType as y}from"./jsonTypeUtils.js";function u(y){return null==y?null:y instanceof r?y:n(y)?e.fromJSON(y):s(y)?m.fromJSON(y):l(y)?i.fromJSON(y):f(y)?t.fromJSON(y):p(y)?o.fromJSON(y):null}const j={esriGeometryPoint:e,esriGeometryPolyline:m,esriGeometryPolygon:i,esriGeometryEnvelope:o,esriGeometryMultipoint:t,esriGeometryMultiPatch:i};function G(o){return o&&j[o]||null}const P=y;export{u as fromJSON,G as getGeometryType,P as getJsonType};
