Remove the null. New versions only take 2 inputs.
And once i moved all the logic into the custom class, it worked.
Earlier i was trying to check some properties with default lambda expression and some with the customType. That didnt work