encode<V> static method

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

Implementation

static V encode<V>(
  PaymentIntentBacsDebit instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.accountNumber != null) {
    container.encodeString(
      'account_number',
      instance.accountNumber!,
    );
  }
  if (instance.sortCode != null) {
    container.encodeString(
      'sort_code',
      instance.sortCode!,
    );
  }
  return container.value;
}