encodeInto method
Encode input into builder.
The bytes representing input should be written to builder in the order
they would be written
Implementation
@override
void encodeInto(T input, BytesBuilder builder) {
final prelude = extractPrelude(input);
final subtype = subtypes[prelude] ?? getSubtype(prelude);
subtype.encodeInto(input, builder);
}