api / tv.twelvetone.json / JsonObject / merge

merge

fun merge(object: JsonObject?): JsonObject

Copies all members of the specified object into this object. When the specified object contains members with names that also exist in this object, the existing values in this object will be replaced by the corresponding values in the specified object.

Parameters

object - the object to merge

Return
the object itself, to enable method chaining