set

fun <T : Any> set(value: T): PatchOp.Set<T>

Creates a JSON Merge Patch set operation from the provided value that sets/replaces the current value.

Return

PatchOp.Set operation instance.

Parameters

value

Value to set/replace the current value with.