WriteOnlySerializer

abstract class WriteOnlySerializer<T : Any>(tSerializer: ERROR CLASS: Symbol not found for KSerializer<T>, keysToIgnore: Set<String>) : <ERROR CLASS> ERROR CLASS: Symbol not found for JsonTransformingSerializer<T>(source)

Replicates Jackson's @JsonProperty(access = JsonProperty.Access.WRITE_ONLY) behaviour. Properties in keysToIgnore are deserialized normally but omitted from serialized output.

Usage:

Constructors

Link copied to clipboard
constructor(tSerializer: ERROR CLASS: Symbol not found for KSerializer<T>, keysToIgnore: Set<String>)

Functions

Link copied to clipboard
open override fun transformSerialize(element: ERROR CLASS: Symbol not found for JsonElement): ERROR CLASS: Symbol not found for JsonElement