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

Given an m x n binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area.
 
Please complete the following python code precisely:
```python
class Solution:
    def maximalSquare(self, matrix: List[List[str]]) -> int:
```