encodeToConfig

Encodes the given value of type T into a Config using a serializer retrieved from the reified type parameter.