interface JSONEncodable

export interface JSONEncodable<Value>

Represents an object capable of representing itself as a JSON object

Type Parameters

Value

The JSON type corresponding to toJSON outputs.

toJSON() : Value

Transforms this object to its JSON format