I'm trying to create a network diagram based on the Basic diagram template for a utility network feature using createDiagramFromFeatures endpoint Create Diagram From Features—ArcGIS REST APIs | ArcGIS Developers
I get a response of the form Diagram Information object but I'm not sure how to convert this JSON object into an actual network diagram that can be visualized on a map that is created using JavaScript API.
There is the fromJSON method that can create an instance of the given class from JSON. But, it looks it is supported only for certain types like - symbols , geometries , FeatureSet. Can this method be used to create a network diagram from Diagram Information JSON?
Any suggestions or examples related to this would be really helpful