toString method

  1. @override
String toString()
override

A string representation of this object.

Some classes have a default textual representation, often paired with a static parse function (like int.parse). These classes will provide the textual representation as their string representation.

Other classes have no meaningful textual representation that a program will care about. Such classes will typically override toString to provide useful information when inspecting the object, mainly for debugging or logging.

Implementation

@override
String toString() {
  final $buf = StringBuffer()..writeln('AccountCapabilities(');
  if (acssDebitPayments != null) {
    $buf
      ..writeln()
      ..write('  acss_debit_payments: ')
      ..write(acssDebitPayments)
      ..write(',');
  }
  if (affirmPayments != null) {
    $buf
      ..writeln()
      ..write('  affirm_payments: ')
      ..write(affirmPayments)
      ..write(',');
  }
  if (afterpayClearpayPayments != null) {
    $buf
      ..writeln()
      ..write('  afterpay_clearpay_payments: ')
      ..write(afterpayClearpayPayments)
      ..write(',');
  }
  if (amazonPayPayments != null) {
    $buf
      ..writeln()
      ..write('  amazon_pay_payments: ')
      ..write(amazonPayPayments)
      ..write(',');
  }
  if (auBecsDebitPayments != null) {
    $buf
      ..writeln()
      ..write('  au_becs_debit_payments: ')
      ..write(auBecsDebitPayments)
      ..write(',');
  }
  if (bacsDebitPayments != null) {
    $buf
      ..writeln()
      ..write('  bacs_debit_payments: ')
      ..write(bacsDebitPayments)
      ..write(',');
  }
  if (bancontactPayments != null) {
    $buf
      ..writeln()
      ..write('  bancontact_payments: ')
      ..write(bancontactPayments)
      ..write(',');
  }
  if (bankTransferPayments != null) {
    $buf
      ..writeln()
      ..write('  bank_transfer_payments: ')
      ..write(bankTransferPayments)
      ..write(',');
  }
  if (blikPayments != null) {
    $buf
      ..writeln()
      ..write('  blik_payments: ')
      ..write(blikPayments)
      ..write(',');
  }
  if (boletoPayments != null) {
    $buf
      ..writeln()
      ..write('  boleto_payments: ')
      ..write(boletoPayments)
      ..write(',');
  }
  if (cardIssuing != null) {
    $buf
      ..writeln()
      ..write('  card_issuing: ')
      ..write(cardIssuing)
      ..write(',');
  }
  if (cardPayments != null) {
    $buf
      ..writeln()
      ..write('  card_payments: ')
      ..write(cardPayments)
      ..write(',');
  }
  if (cartesBancairesPayments != null) {
    $buf
      ..writeln()
      ..write('  cartes_bancaires_payments: ')
      ..write(cartesBancairesPayments)
      ..write(',');
  }
  if (cashappPayments != null) {
    $buf
      ..writeln()
      ..write('  cashapp_payments: ')
      ..write(cashappPayments)
      ..write(',');
  }
  if (epsPayments != null) {
    $buf
      ..writeln()
      ..write('  eps_payments: ')
      ..write(epsPayments)
      ..write(',');
  }
  if (fpxPayments != null) {
    $buf
      ..writeln()
      ..write('  fpx_payments: ')
      ..write(fpxPayments)
      ..write(',');
  }
  if (giropayPayments != null) {
    $buf
      ..writeln()
      ..write('  giropay_payments: ')
      ..write(giropayPayments)
      ..write(',');
  }
  if (grabpayPayments != null) {
    $buf
      ..writeln()
      ..write('  grabpay_payments: ')
      ..write(grabpayPayments)
      ..write(',');
  }
  if (idealPayments != null) {
    $buf
      ..writeln()
      ..write('  ideal_payments: ')
      ..write(idealPayments)
      ..write(',');
  }
  if (indiaInternationalPayments != null) {
    $buf
      ..writeln()
      ..write('  india_international_payments: ')
      ..write(indiaInternationalPayments)
      ..write(',');
  }
  if (jcbPayments != null) {
    $buf
      ..writeln()
      ..write('  jcb_payments: ')
      ..write(jcbPayments)
      ..write(',');
  }
  if (klarnaPayments != null) {
    $buf
      ..writeln()
      ..write('  klarna_payments: ')
      ..write(klarnaPayments)
      ..write(',');
  }
  if (konbiniPayments != null) {
    $buf
      ..writeln()
      ..write('  konbini_payments: ')
      ..write(konbiniPayments)
      ..write(',');
  }
  if (legacyPayments != null) {
    $buf
      ..writeln()
      ..write('  legacy_payments: ')
      ..write(legacyPayments)
      ..write(',');
  }
  if (linkPayments != null) {
    $buf
      ..writeln()
      ..write('  link_payments: ')
      ..write(linkPayments)
      ..write(',');
  }
  if (mobilepayPayments != null) {
    $buf
      ..writeln()
      ..write('  mobilepay_payments: ')
      ..write(mobilepayPayments)
      ..write(',');
  }
  if (oxxoPayments != null) {
    $buf
      ..writeln()
      ..write('  oxxo_payments: ')
      ..write(oxxoPayments)
      ..write(',');
  }
  if (p24Payments != null) {
    $buf
      ..writeln()
      ..write('  p24_payments: ')
      ..write(p24Payments)
      ..write(',');
  }
  if (paynowPayments != null) {
    $buf
      ..writeln()
      ..write('  paynow_payments: ')
      ..write(paynowPayments)
      ..write(',');
  }
  if (promptpayPayments != null) {
    $buf
      ..writeln()
      ..write('  promptpay_payments: ')
      ..write(promptpayPayments)
      ..write(',');
  }
  if (revolutPayPayments != null) {
    $buf
      ..writeln()
      ..write('  revolut_pay_payments: ')
      ..write(revolutPayPayments)
      ..write(',');
  }
  if (sepaDebitPayments != null) {
    $buf
      ..writeln()
      ..write('  sepa_debit_payments: ')
      ..write(sepaDebitPayments)
      ..write(',');
  }
  if (sofortPayments != null) {
    $buf
      ..writeln()
      ..write('  sofort_payments: ')
      ..write(sofortPayments)
      ..write(',');
  }
  if (swishPayments != null) {
    $buf
      ..writeln()
      ..write('  swish_payments: ')
      ..write(swishPayments)
      ..write(',');
  }
  if (taxReportingUs1099K != null) {
    $buf
      ..writeln()
      ..write('  tax_reporting_us_1099_k: ')
      ..write(taxReportingUs1099K)
      ..write(',');
  }
  if (taxReportingUs1099Misc != null) {
    $buf
      ..writeln()
      ..write('  tax_reporting_us_1099_misc: ')
      ..write(taxReportingUs1099Misc)
      ..write(',');
  }
  if (transfers != null) {
    $buf
      ..writeln()
      ..write('  transfers: ')
      ..write(transfers)
      ..write(',');
  }
  if (treasury != null) {
    $buf
      ..writeln()
      ..write('  treasury: ')
      ..write(treasury)
      ..write(',');
  }
  if (usBankAccountAchPayments != null) {
    $buf
      ..writeln()
      ..write('  us_bank_account_ach_payments: ')
      ..write(usBankAccountAchPayments)
      ..write(',');
  }
  if (zipPayments != null) {
    $buf
      ..writeln()
      ..write('  zip_payments: ')
      ..write(zipPayments)
      ..write(',');
  }
  $buf.write(')');
  return $buf.toString();
}