encode<V> static method
Implementation
static V encode<V>(
PaymentIntentCashapp instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.captureMethod != null) {
SessionCaptureMethod.encode(
instance.captureMethod!,
container.nestedSingleValueContainer('capture_method').encoder,
);
}
if (instance.setupFutureUsage != null) {
PaymentIntentSetupFutureUsage.encode(
instance.setupFutureUsage!,
container.nestedSingleValueContainer('setup_future_usage').encoder,
);
}
return container.value;
}