Hi,
I know it is easy to use an instance of a WebMap to send it to the ExportWebMap REST Endpoint of the ArcGIS Server Print Service. (https://developers.arcgis.com/rest/services-reference/enterprise/exportwebmap-specification/)
But when I got an instance of a Map and can´t use the Print Widget of the ESRI JS API. In 3.x there was an _getPrintDefinition() in the esri/tasks/PrintTask
https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-the-webmap-from-javascript-ap...
Is there any hidden function in 4.x that does the conversion for me?
Thanks!