This refactor will help with https://github.com/phetsims/phet-io/issues/1881#issuecomment-2155615116. Over there, we would like to hide an implementation detail for the serialization of a subtype of Property, but don't need to (or want to) change the PhET-iO api. Allowing the instance method toStateObject to be overridden will help us do this.
This refactor will help with https://github.com/phetsims/phet-io/issues/1881#issuecomment-2155615116. Over there, we would like to hide an implementation detail for the serialization of a subtype of Property, but don't need to (or want to) change the PhET-iO api. Allowing the instance method
toStateObject
to be overridden will help us do this.