encode<V> static method

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

Implementation

static V encode<V>(
  PaymentIntentNextActionKonbiniMinistop instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.confirmationNumber != null) {
    container.encodeString(
      'confirmation_number',
      instance.confirmationNumber!,
    );
  }
  container.encodeString(
    'payment_code',
    instance.paymentCode,
  );
  return container.value;
}