The mask property, which has the match name ADBE Mask Parade, has a propertyType of PropertyType.INDEXED_GROUP. It is expected to be a PropertyGroup, while its child properties are of the type MaskPropertyGroup.
For example: layer.mask.maskMode provides the correct type hint, but when executing the code, it fails to retrieve any values.
I used a third-party tool to demonstrate this hierarchy issue. This tool can read nested Property hierarchies and display them as JSON:
