Skip to content

Interface: CustomEncodable

A class that opts in to custom encoding/decoding.

Implement [ENCODE_METHOD]() on instances to produce an Encodable snapshot, and static [DECODE_METHOD](data) to reconstruct the instance. Pass the class to registerClass() so the decoder can find it.

Methods

[ENCODE_METHOD]()

ts
ENCODE_METHOD: Encodable;

Returns

Encodable