Implement the same feature as #26 but for `KnownSubTypeWithProperty` attribute.
Implement the same feature as #26 but for
KnownSubTypeWithPropertyattribute.