encode<V> static method
Implementation
static V encode<V>(
TerminalReaderReaderResourceSetReaderDisplayAction instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.cart != null) {
TerminalReaderReaderResourceCart.encode(
instance.cart!,
container.nestedSingleValueContainer('cart').encoder,
);
}
container.encodeString(
'type',
'cart',
);
return container.value;
}