You have a defined type and want to use a default value for a parameter from a params class.
Set the default value of the variable as undef
, then put a conditional after including the params class in the class body in which you set another internal variable with the value of the params class variable or the user-defined value.