import*as jsonUtils from"@arcgis/core/geometry/support/jsonUtils";import{isArcGisApiVersion3x}from"./ArcGisApiVersion.js";class GeometryFromJson{execute(o,r){if(!o.json)return{geometry:void 0};var s="string"==typeof o.json?JSON.parse(o.json):o.json;const e=jsonUtils;o=isArcGisApiVersion3x?"fromJson":"fromJSON";return{geometry:e[o](s)}}}GeometryFromJson.action="gcx:wf:arcgis::GeometryFromJson",GeometryFromJson.suite="gcx:wf:builtin";export{GeometryFromJson};