encode method

  1. @override
void encode(
  1. Map<K, V> value,
  2. Encoder encoder
)
override

Encodes the value using the encoder.

The implementation must use one of the typed Encoders .encode...() methods to encode the value. It is expected to call exactly one of the encoding methods a single time. Never more or less.

Implementation

@override
void encode(Map<K, V> value, Encoder encoder) {
  encoder.encodeMap(value, keyUsing: keyCodable, valueUsing: codable);
}