encode<V> static method
Implementation
static V encode<V>(
InvoiceSettingSubscriptionSchedulePhaseSetting instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.accountTaxIds != null) {
container.encodeList(
'account_tax_ids',
(container) => instance.accountTaxIds!
.forEach((el) => InvoiceAccountTaxIdsItemOrId.encode(
el,
container.nestedSingleValueContainer().encoder,
)),
);
}
if (instance.daysUntilDue != null) {
container.encodeInt(
'days_until_due',
instance.daysUntilDue!,
);
}
if (instance.issuer != null) {
ConnectAccountReference.encode(
instance.issuer!,
container.nestedSingleValueContainer('issuer').encoder,
);
}
return container.value;
}