encode method
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(R value, Encoder encoder) {
throw CodableException.unsupportedMethod('Encoder', 'encode$target()',
reason: 'Called "encode$target()" on an encoder that does not support encoding ${target}s.');
}