of

open fun <T> of(type: Class<out T>, action: UnaryOperator<T>): JsonWriter.ValueProcessor<T>

Factory method to crate a new ValueProcessor that applies the given action.

Return

a new ValueProcessor instance

Parameters

<T>

the value type

type

the value type

action

the action to apply


Factory method to crate a new ValueProcessor that applies the given action.

Return

a new ValueProcessor instance

Parameters

<T>

the value type

action

the action to apply