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

Given a 2D integer array nums, return all elements of nums in diagonal order as shown in the below images.
 
Please complete the following python code precisely:
```python
class Solution:
    def findDiagonalOrder(self, nums: List[List[int]]) -> List[int]:
```