fromIntOrNull

Helper function for converting responses received by MessageDialog response signals into a ResponseType enum value.

Received responses are typically integers which can correspond to values in the ResponseType enum but they can also be user defined.