shallowCopyFieldState

open fun shallowCopyFieldState(src: Any, dest: Any)

Given the source object and the destination, which must be the same class or a subclass, copy all fields, including inherited fields. Designed to work on objects with public no-arg constructors.

Throws

if introspection fails