encode<V> static method

V encode<V>(
  1. PaymentPagesCheckoutSessionTaxId instance,
  2. Encoder<V> encoder
)

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;
}