export function jsonToGeometryType(e){switch(e){case"esriGeometryPoint":return"point";case"esriGeometryMultipoint":return"multipoint";case"esriGeometryPolyline":return"polyline";case"esriGeometryPolygon":return"polygon";case"esriGeometryEnvelope":return"extent";default:throw new Error("Unrecognized geometry type.")}}export function geometryTypeToJson(e){switch(e){case"point":return"esriGeometryPoint";case"multipoint":return"esriGeometryMultipoint";case"polyline":return"esriGeometryPolyline";case"polygon":return"esriGeometryPolygon";case"extent":return"esriGeometryEnvelope";default:throw new Error("Unrecognized geometry type.")}}