Interface EncodableClass<T>

A type that represents the class of an Encodable object.

interface EncodableClass<T> {
    encodingSchema: Schema;
    fromEncodingData(data): T;
}

Type Parameters

Properties

encodingSchema: Schema

The encoding Schema for this class, used to prepare encoding data from msgpack and JSON.

Methods

  • Create a new instance of this class from the given encoding data.

    Parameters

    • data: unknown

      The encoding data to create the object from

    Returns T

Generated using TypeDoc