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('RefundDestinationDetails(');
  if (affirm != null) {
    $buf
      ..writeln()
      ..write('  affirm: ')
      ..write(affirm)
      ..write(',');
  }
  if (afterpayClearpay != null) {
    $buf
      ..writeln()
      ..write('  afterpay_clearpay: ')
      ..write(afterpayClearpay)
      ..write(',');
  }
  if (alipay != null) {
    $buf
      ..writeln()
      ..write('  alipay: ')
      ..write(alipay)
      ..write(',');
  }
  if (auBankTransfer != null) {
    $buf
      ..writeln()
      ..write('  au_bank_transfer: ')
      ..write(auBankTransfer)
      ..write(',');
  }
  if (blik != null) {
    $buf
      ..writeln()
      ..write('  blik: ')
      ..write(blik)
      ..write(',');
  }
  if (brBankTransfer != null) {
    $buf
      ..writeln()
      ..write('  br_bank_transfer: ')
      ..write(brBankTransfer)
      ..write(',');
  }
  if (card != null) {
    $buf
      ..writeln()
      ..write('  card: ')
      ..write(card)
      ..write(',');
  }
  if (cashapp != null) {
    $buf
      ..writeln()
      ..write('  cashapp: ')
      ..write(cashapp)
      ..write(',');
  }
  if (customerCashBalance != null) {
    $buf
      ..writeln()
      ..write('  customer_cash_balance: ')
      ..write(customerCashBalance)
      ..write(',');
  }
  if (eps != null) {
    $buf
      ..writeln()
      ..write('  eps: ')
      ..write(eps)
      ..write(',');
  }
  if (euBankTransfer != null) {
    $buf
      ..writeln()
      ..write('  eu_bank_transfer: ')
      ..write(euBankTransfer)
      ..write(',');
  }
  if (gbBankTransfer != null) {
    $buf
      ..writeln()
      ..write('  gb_bank_transfer: ')
      ..write(gbBankTransfer)
      ..write(',');
  }
  if (giropay != null) {
    $buf
      ..writeln()
      ..write('  giropay: ')
      ..write(giropay)
      ..write(',');
  }
  if (grabpay != null) {
    $buf
      ..writeln()
      ..write('  grabpay: ')
      ..write(grabpay)
      ..write(',');
  }
  if (jpBankTransfer != null) {
    $buf
      ..writeln()
      ..write('  jp_bank_transfer: ')
      ..write(jpBankTransfer)
      ..write(',');
  }
  if (klarna != null) {
    $buf
      ..writeln()
      ..write('  klarna: ')
      ..write(klarna)
      ..write(',');
  }
  if (mxBankTransfer != null) {
    $buf
      ..writeln()
      ..write('  mx_bank_transfer: ')
      ..write(mxBankTransfer)
      ..write(',');
  }
  if (p24 != null) {
    $buf
      ..writeln()
      ..write('  p24: ')
      ..write(p24)
      ..write(',');
  }
  if (paynow != null) {
    $buf
      ..writeln()
      ..write('  paynow: ')
      ..write(paynow)
      ..write(',');
  }
  if (paypal != null) {
    $buf
      ..writeln()
      ..write('  paypal: ')
      ..write(paypal)
      ..write(',');
  }
  if (pix != null) {
    $buf
      ..writeln()
      ..write('  pix: ')
      ..write(pix)
      ..write(',');
  }
  if (revolut != null) {
    $buf
      ..writeln()
      ..write('  revolut: ')
      ..write(revolut)
      ..write(',');
  }
  if (sofort != null) {
    $buf
      ..writeln()
      ..write('  sofort: ')
      ..write(sofort)
      ..write(',');
  }
  if (swish != null) {
    $buf
      ..writeln()
      ..write('  swish: ')
      ..write(swish)
      ..write(',');
  }
  if (thBankTransfer != null) {
    $buf
      ..writeln()
      ..write('  th_bank_transfer: ')
      ..write(thBankTransfer)
      ..write(',');
  }
  $buf
    ..writeln()
    ..write('  type: ')
    ..write(type)
    ..write(',');
  if (usBankTransfer != null) {
    $buf
      ..writeln()
      ..write('  us_bank_transfer: ')
      ..write(usBankTransfer)
      ..write(',');
  }
  if (wechatPay != null) {
    $buf
      ..writeln()
      ..write('  wechat_pay: ')
      ..write(wechatPay)
      ..write(',');
  }
  if (zip != null) {
    $buf
      ..writeln()
      ..write('  zip: ')
      ..write(zip)
      ..write(',');
  }
  $buf.write(')');
  return $buf.toString();
}