Object
class in package klyn

    public class Object:

Object

Object is the root class of all classes in the Klyn language.

Properties

Modifier and Type | Member | Description
--- | --- | ---
public readonly property | type `type as Type:` | Represents the type of the current object.

Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | Object `Object():` | Creates a root object instance.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public static | fromJson `fromJson<Type>(json as String) as Type:` | Normalizes compact object JSON formatting.
public native | toDict `toDict() as Map<String, Object>` | Returns the object public state as a dictionary.
public | toJson `toJson(exclude as List<String> = null, spaces as Boolean = true, pretty as Boolean = false, indent as Int = 0) as String:` | Returns the object as JSON text.
public native | toString `toString() as String` | Returns a string representation of the object.
public | toXml `toXml(exclude as List<String> = null, prettyPrint as Boolean = true, indent as Int = 4) as String:` | Returns the object as XML text.