Companion

object Companion

Properties

Link copied to clipboard

Constant value representing null.

Functions

Link copied to clipboard

Creates a DataItem that contains a boolean as its value

Link copied to clipboard

Attempts to create a DataItem that contains any as its value. If the conversion to a DataItem fails for any reason, then the NULL value is returned instead.

fun convert(any: Any?, default: DataItem): DataItem

Attempts to create a DataItem that contains any as its value. If the conversion to a DataItem fails for any reason, then the default value is returned instead.

Link copied to clipboard

Converts an object of unknown type. This method is not guaranteed to succeed. For unsupported types, NULL will be returned.

Link copied to clipboard

Creates a DataItem that contains a double as its value

Link copied to clipboard

Creates a DataItem that contains a int as its value

Link copied to clipboard

Creates a DataItem that contains a long as its value

Link copied to clipboard
fun parse(string: String): DataItem

Creates a DataItem from it's string representation, parsing the contents of the string as if it were JSON i.e. string values should be quoted "value"

Link copied to clipboard

Creates a DataItem that contains a string as its value