encode<V> static method

V encode<V>(
  1. PaymentIntentMobilepay instance,
  2. Encoder<V> encoder
)

Implementation

static V encode<V>(
  PaymentIntentMobilepay 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) {
    container.encodeString(
      'setup_future_usage',
      'none',
    );
  }
  return container.value;
}