encode<V> static method
Implementation
static V encode<V>(
PaymentIntentCreateOptionsPaymentMethodOptionsSofort instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.preferredLanguage != null) {
container.encodeString(
'preferred_language',
instance.preferredLanguage!,
);
}
if (instance.setupFutureUsage != null) {
SessionPaypalSetupFutureUsage.encode(
instance.setupFutureUsage!,
container.nestedSingleValueContainer('setup_future_usage').encoder,
);
}
return container.value;
}