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

Reversing an integer means to reverse all its digits.

For example, reversing 2021 gives 1202. Reversing 12300 gives 321 as the leading zeros are not retained.

Given an integer num, reverse num to get reversed1, then reverse reversed1 to get reversed2. Return true if reversed2 equals num. Otherwise return false.
 
Please complete the following python code precisely:
```python
class Solution:
    def isSameAfterReversals(self, num: int) -> bool:
```