Interface Serializable<DataT>

Declares support for converting a managed class or managed data object to a simple object and serialized.

interface Serializable<DataT> {
    serialize: (() => null | string);
    toData: (() => DataT);
}

Type Parameters

  • DataT

Properties

Properties

serialize: (() => null | string)

Serialize current class properties and values for storage or transport.

Type declaration

    • (): null | string
    • Returns null | string

toData: (() => DataT)

Convert managed class to Toreda Data Object. Primitives and simple objects which can be easily converted to strings for storage.

Type declaration