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

Given an binary array nums and an integer k, return true if all 1's are at least k places away from each other, otherwise return false.
 
Please complete the following python code precisely:
```python
class Solution:
    def kLengthApart(self, nums: List[int], k: int) -> bool:
```