Interface for classes that want to apply a custom serialization logic.
If a class implements this interface, its customSerialize
method will be called instead of the default serialization logic.
It is the responsibility of the implementation to recursively serialize
nested objects.
Interface for classes that want to apply a custom serialization logic. If a class implements this interface, its customSerialize method will be called instead of the default serialization logic. It is the responsibility of the implementation to recursively serialize nested objects.