tock / ai.tock.shared.jackson / ConstrainedValueWrapper

# ConstrainedValueWrapper

`data class ConstrainedValueWrapper<T : Any>` (source)

A jackson wrapper to store class name with dynamic type value. Only allowed types can be deserialized.

### Constructors

#### <init> | `ConstrainedValueWrapper(klass: KClass<*>, value: T?)` `ConstrainedValueWrapper(value: T)` A jackson wrapper to store class name with dynamic type value. Only allowed types can be deserialized. `ConstrainedValueWrapper(klass: String, value: T?)`

### Properties

#### klass | `val klass: String`
#### value | `val value: T?`