encode<V> static method
Implementation
static V encode<V>(
InvoiceItemDiscountsItem instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.coupon != null) {
container.encodeString(
'coupon',
instance.coupon!,
);
}
if (instance.discount != null) {
container.encodeString(
'discount',
instance.discount!,
);
}
return container.value;
}