Get current zoom

I need to create a setZoom() function in Cesium, so the user can define how close he want to be. For that, I believe I need to evaluate the current zoom so I can decide if I have to use the zoomIn or zoomOut to show what the user asks.

Does anyone know if it’s possible to get the zoom level from the map when using Cesium? Or any other solution… Any tips are very welcome.

Does the function getMagnitude() does the trick?

Thanks!