import FeatureSet from"@arcgis/core/tasks/support/FeatureSet";import{isArcGisApiVersion3x}from"./ArcGisApiVersion.js";class FeatureSetFromJson{execute(e,r){if(!e.json)return{featureSet:void 0};e="string"==typeof e.json?JSON.parse(e.json):e.json;return{featureSet:isArcGisApiVersion3x?new FeatureSet(e):FeatureSet.fromJSON(e)}}}FeatureSetFromJson.action="gcx:wf:arcgis::FeatureSetFromJson",FeatureSetFromJson.suite="gcx:wf:builtin";export{FeatureSetFromJson};