API ReferenceCore Interfaces & TypesEncodableOn this pageEncodable Interface for objects that can be encoded/serialized Allows custom classes to control their serialization behavior Methods serialize() serialize(encoder: Encoder<K, V, T>, options: OT): void