you could have two virtual cameras with different zoom settings then just turn on and off the camera. On the unity camera for the cinemachine brain set the blend type and duration.
simply just turn it on or off and no other code is needed
zoomedMachine.setActive(true);