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

Given an m x n matrix mat, return an array of all the elements of the array in a diagonal order.
 
Please complete the following python code precisely:
```python
class Solution:
    def findDiagonalOrder(self, mat: List[List[int]]) -> List[int]:
```