Overriding schema class properties

Hi guys, I'm experimenting with schemas and I'm a bit confused as to how to retain custom getters etc. when overriding a class. At some point I want to create a function that takes a schema class and overrides a string property with anotehr schema class, because the API that returns the data will have populated that field (with a SQL join). However, I'm running into some problems where a custom getter in the original schema class is just a static value set to undefined, and Typescript tells me that the decoded value is a plain object instead of a class instance. The following might illustrate the problem better:
https://effect.website/play/#99d0a390b1ae
The class actually extends properly, and decodes, but the value of label in the first console.log remains undefined. Am I doing the overriding wrong in this case? The comment at the bottom also mentions the following steps I want to move towards: Creating a populate function that creates a new class instance from a schema by overriding certain properties.
Effect Documentation
Was this page helpful?