Class: Serializable

(abstract) jrt.Serializable(propertiesopt, nullable)

Base class for an object serializable in JSON.

The serializable properties are the objects's enumerable properties (those inherited as well). Transient properties must be explicitly made non-enumerable with Object#defineProperty.

Constructor

(abstract) new Serializable(propertiesopt, nullable)

Creates a serializable object.

Parameters:
Name Type Attributes Description
properties Object <optional>
<nullable>

Object to copy properties from (optional).

Members

(protected, non-null) app :jrt.App

Reference to the app instance.

Type:

Methods

getProperties() → (non-null) {Object}

Returns a new object containing this object's serializable properties.

Returns:
Type
Object

setProperties(propertiesnon-null)

Copies the specified object's enumerable properties to this object.

Parameters:
Name Type Description
properties Object