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

Given an integer array nums sorted in non-decreasing order, return an array of the squares of each number sorted in non-decreasing order.
 
Please complete the following python code precisely:
```python
class Solution:
    def sortedSquares(self, nums: List[int]) -> List[int]:
```