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