toDynamicDto
Wraps value for writing, saying that the dynamic_dto form is the one meant.
Needed only where strategy leaves the question open - under EXPLICIT_ONLY, or for a class registered as a composite as well under AUTOMATIC_WHEN_UNAMBIGUOUS. A registered class that is neither goes through unwrapped.
Return
The value as a dynamic_dto.
Parameters
value
An instance of a registered class.
Throws
INVALID_ARGUMENT where value's class was never registered.