encode<V> static method

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

Implementation

static V encode<V>(
  PaymentIntentProcessing instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.card != null) {
    PaymentIntentCardProcessing.encode(
      instance.card!,
      container.nestedSingleValueContainer('card').encoder,
    );
  }
  container.encodeString(
    'type',
    'card',
  );
  return container.value;
}