encode<V> static method
Implementation
static V encode<V>(
SubscriptionInvoiceSettings instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.accountTaxIds != null) {
container.encodeList(
'account_tax_ids',
(container) =>
instance.accountTaxIds!.forEach((el) => container.encodeString(el)),
);
}
if (instance.issuer != null) {
SessionLiability.encode(
instance.issuer!,
container.nestedSingleValueContainer('issuer').encoder,
);
}
return container.value;
}