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