as

open fun <R> as(adapter: (T) -> R): JsonWriter.Member<R>

Adapt the value by applying the given Function.

Return

a Member which may be configured further

Parameters

<R>

the result type

adapter

a Function to adapt the value