encode abstract method

FutureOr<EncodedValue?> encode(
  1. TypedValue<Object> input,
  2. CodecContext context
)

Encodes the input value and returns an EncodedValue object.

May return null if the codec is not able to encode the input.

Implementation

FutureOr<EncodedValue?> encode(TypedValue input, CodecContext context);