Home Reference Source
import {Serializable} from 'rabbit-hole'
public interface | source

Serializable

Indirect Implemented:

The Serializable contract.

Implemented by objects that can provide a flat representation of the data they contain.

Method Summary

Public Methods
public

serialize(deflate: Boolean): Object

Serialises this data.

Public Methods

public serialize(deflate: Boolean): Object source

Serialises this data.

Params:

NameTypeAttributeDescription
deflate Boolean
  • optional
  • default: false

Whether the data should be compressed if possible.

Return:

Object

The serialised data.