encode<V> static method

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

Implementation

static V encode<V>(
  PaymentIntentCartesBancaires instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeString(
    'cb_avalgo',
    instance.cbAvalgo,
  );
  if (instance.cbExemption != null) {
    container.encodeString(
      'cb_exemption',
      instance.cbExemption!,
    );
  }
  if (instance.cbScore != null) {
    container.encodeInt(
      'cb_score',
      instance.cbScore!,
    );
  }
  return container.value;
}