Please solve the programming task below using a self-contained code snippet in a markdown code block.

Given an integer array nums, return the most frequent even element.
If there is a tie, return the smallest one. If there is no such element, return -1.
 
Please complete the following python code precisely:
```python
class Solution:
    def mostFrequentEven(self, nums: List[int]) -> int:
```