Struct

class Struct

Dynamical data structure represented in JSON format.

Value Params
json

String JSON representation.

See also
Since

0.1.0

Example
val struct = Struct(title = "apple", quantity = 3, edible=true, color=["green", "red", "green"])
Companion
object
class Object
trait Matchable
class Any

Value members

Concrete methods

def isEmptyStruct: Boolean

True if struct is empty.

True if struct is empty.

Returns

True if empty.

Since

0.1.0

def nonEmptyStruct: Boolean

True if not empty.

True if not empty.

Returns

True if not isEmptyStruct.

Since

0.1.0

override def toString: String

JSON string representation.

JSON string representation.

Returns

JSON string.

Since

0.1.0

Definition Classes
Any

Concrete fields

val json: String