encode<V> static method

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

Implementation

static V encode<V>(
  PaymentIntentBlik instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.code != null) {
    container.encodeString(
      'code',
      instance.code!,
    );
  }
  if (instance.setupFutureUsage != null) {
    container.encodeString(
      'setup_future_usage',
      instance.setupFutureUsage!,
    );
  }
  return container.value;
}