atreeon / morphy

Provides a clean class definition with extra functionality including; copy with, json serializable, tostring, equals that supports inheritance and polymorphism
3 stars 3 forks source link

explicitJson should be configurable #18

Open miklcct opened 1 month ago

miklcct commented 1 month ago

Currently, explicitJson is hardcoded to be true in the generated classes, which doesn't match the expectation of pre-existing code migrated from another library.

It should be able to be configured to be false, such that toJson() only shallow-convert the object to Map