DeepCopy complex object with cyclic references and custom getters using Serialization
I wrote a complex Kotlin class Env
in which I need to implement a deepCopy method. Here is a minimal reproductive example of the class and its referenced classes: