3 ms·
A missed opportunity? If the struct graph is all records or primitives, the compiler should include a toJson(), fromJson() in the sealed class. It could be do
by grizzles 7y ago
A missed opportunity?
If the struct graph is all records or primitives, the compiler should include a toJson(), fromJson() in the sealed class.
It could be done with classes too, but if it was records/prims only, then it could be done without using reflection.