Companion

object Companion

Functions

Link copied to clipboard

Creates a JSON Merge Patch delete operation that deletes the current value.

Link copied to clipboard
fun <T : Any> none(): PatchOp.None<T>

Creates a JSON Merge Patch none operation that leaves the current value untouched.

Link copied to clipboard
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.

Link copied to clipboard
fun <T : Any> setOrDelete(value: T?): PatchOp<T>

Creates a JSON Merge Patch set or delete operation from the provided value. If the value provided is not null a set operation is created to set/replace the current value. Alternatively, when the provided value is null a delete operation is created to delete the current value.