encode<V> static method
Implementation
static V encode<V>(
InvoicePaymentMethodOptionsAcssDebit instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.mandateOptions != null) {
InvoicePaymentMethodOptionsAcssDebitMandateOptions.encode(
instance.mandateOptions!,
container.nestedSingleValueContainer('mandate_options').encoder,
);
}
if (instance.verificationMethod != null) {
CheckoutAcssDebitPaymentMethodOptionsVerificationMethod.encode(
instance.verificationMethod!,
container.nestedSingleValueContainer('verification_method').encoder,
);
}
return container.value;
}