encode<V> static method
Implementation
static V encode<V>(
SessionAcssDebit instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.currency != null) {
CheckoutAcssDebitPaymentMethodOptionsCurrency.encode(
instance.currency!,
container.nestedSingleValueContainer('currency').encoder,
);
}
if (instance.mandateOptions != null) {
SessionMandateOptions.encode(
instance.mandateOptions!,
container.nestedSingleValueContainer('mandate_options').encoder,
);
}
if (instance.setupFutureUsage != null) {
CheckoutAcssDebitPaymentMethodOptionsSetupFutureUsage.encode(
instance.setupFutureUsage!,
container.nestedSingleValueContainer('setup_future_usage').encoder,
);
}
if (instance.verificationMethod != null) {
CheckoutAcssDebitPaymentMethodOptionsVerificationMethod.encode(
instance.verificationMethod!,
container.nestedSingleValueContainer('verification_method').encoder,
);
}
return container.value;
}