encode<V> static method

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

Implementation

static V encode<V>(
  SetupIntentPaymentMethodOptionsSepaDebit instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.mandateOptions != null) {
    SetupIntentPaymentMethodOptionsMandateOptionsSepaDebit.encode(
      instance.mandateOptions!,
      container.nestedSingleValueContainer('mandate_options').encoder,
    );
  }
  return container.value;
}