CaseWhenElse
Parameters
T
The return type of the CASE expression
cases
The conditions to check and their results if met
elseResult
The result if none of the conditions are found to be true
The return type of the CASE expression
The conditions to check and their results if met
The result if none of the conditions are found to be true