from

open fun <V> from(value: V): JsonWriter.Member<V>

Add members from a static value. One of the Member.using(...) methods must be used to complete the configuration.

Return

the added Member which may be configured further

Parameters

<V>

the value type

value

the member value


open fun <V> from(supplier: Supplier<V>): JsonWriter.Member<V>

Add members from a supplied value. One of the Member.using(...) methods must be used to complete the configuration.

Return

the added Member which may be configured further

Parameters

<V>

the value type

supplier

a supplier of the value


open fun <V> from(extractor: (T) -> V): JsonWriter.Member<V>

Add members from an extracted value. One of the Member.using(...) methods must be used to complete the configuration.

Return

the added Member which may be configured further

Parameters

<V>

the value type

extractor

a function to extract the value