encode<V> static method
Implementation
static V encode<V>(
InvoiceInstallments instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.enabled != null) {
container.encodeBool(
'enabled',
instance.enabled!,
);
}
if (instance.plan != null) {
InvoicePlan.encode(
instance.plan!,
container.nestedSingleValueContainer('plan').encoder,
);
}
return container.value;
}