serialize
Serializes a configuration instance into a map of property names to values.
The resulting map preserves constructor parameter order and excludes properties annotated with @Transient. Nested data classes are recursively serialized, and custom types are dispatched through the provided registry.
Return
A Map of property names to their serialized values. Ordering matches the primary constructor parameter order.
Since
1.0
Parameters
T
The configuration type, must be a non-null type.
instance
The configuration object to serialize.
registry
The SerializerRegistry used to resolve custom TypeSerializer implementations for non-standard types.