encode<V> static method
Implementation
static V encode<V>(
InvoicesResourceLineItemsProrationDetails instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.creditedItems != null) {
InvoicesResourceLineItemsCreditedItems.encode(
instance.creditedItems!,
container.nestedSingleValueContainer('credited_items').encoder,
);
}
return container.value;
}