encode<V> static method
Implementation
static V encode<V>(
Error instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
ApiErrors.encode(
instance.error,
container.nestedSingleValueContainer('error').encoder,
);
return container.value;
}