when

open fun when(predicate: Predicate<T>): JsonWriter.ValueProcessor<T>

Return a new processor from this one that only applies to member with values that match the given predicate.

Return

a new ValueProcessor that only applies when the predicatematches

Parameters

predicate

the predicate that must match