encode<V> static method
Implementation
static V encode<V>(
CheckoutUsBankAccountPaymentMethodOptions instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.financialConnections != null) {
LinkedAccountOptionsUsBankAccount.encode(
instance.financialConnections!,
container.nestedSingleValueContainer('financial_connections').encoder,
);
}
if (instance.setupFutureUsage != null) {
CheckoutAcssDebitPaymentMethodOptionsSetupFutureUsage.encode(
instance.setupFutureUsage!,
container.nestedSingleValueContainer('setup_future_usage').encoder,
);
}
if (instance.verificationMethod != null) {
container.encodeString(
'verification_method',
instance.verificationMethod!,
);
}
return container.value;
}