setValue

actual open override fun setValue(key: String, value: Any?): MutableDocument(source)
expect open override fun setValue(key: String, value: Any?): MutableDocument(source)

Set an object value by key. Allowed value types are List, Instant, Map, Number, null, String, Array, Blob, and Dictionary. If present, Lists, Arrays, Maps and Dictionaries may contain only the above types. An Instant date object will be converted to an ISO-8601 format string.

Return

this Document instance

Parameters

key

the key.

value

the Object value.

actual open override fun setValue(key: String, value: Any?): MutableDocument(source)

Set an object value by key. Allowed value types are List, Instant, Map, Number, null, String, Array, Blob, and Dictionary. If present, Lists, Arrays, Maps and Dictionaries may contain only the above types.

Return

The self object.

Parameters

key

the key.

value

the object value.

actual open override fun setValue(key: String, value: Any?): MutableDocument(source)