encodeToConfig
fun <T> encodeToConfig(serializer: SerializationStrategy<T>, value: T): Config
Content copied to clipboard
Encodes the given value into a Config using the given serializer.
Throws
If list or primitive type passed as a value.