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('Source(');
  if (achCreditTransfer != null) {
    $buf
      ..writeln()
      ..write('  ach_credit_transfer: ')
      ..write(achCreditTransfer)
      ..write(',');
  }
  if (achDebit != null) {
    $buf
      ..writeln()
      ..write('  ach_debit: ')
      ..write(achDebit)
      ..write(',');
  }
  if (acssDebit != null) {
    $buf
      ..writeln()
      ..write('  acss_debit: ')
      ..write(acssDebit)
      ..write(',');
  }
  if (alipay != null) {
    $buf
      ..writeln()
      ..write('  alipay: ')
      ..write(alipay)
      ..write(',');
  }
  if (amount != null) {
    $buf
      ..writeln()
      ..write('  amount: ')
      ..write(amount)
      ..write(',');
  }
  if (auBecsDebit != null) {
    $buf
      ..writeln()
      ..write('  au_becs_debit: ')
      ..write(auBecsDebit)
      ..write(',');
  }
  if (bancontact != null) {
    $buf
      ..writeln()
      ..write('  bancontact: ')
      ..write(bancontact)
      ..write(',');
  }
  if (card != null) {
    $buf
      ..writeln()
      ..write('  card: ')
      ..write(card)
      ..write(',');
  }
  if (cardPresent != null) {
    $buf
      ..writeln()
      ..write('  card_present: ')
      ..write(cardPresent)
      ..write(',');
  }
  $buf
    ..writeln()
    ..write('  client_secret: ')
    ..write(clientSecret)
    ..write(',');
  if (codeVerification != null) {
    $buf
      ..writeln()
      ..write('  code_verification: ')
      ..write(codeVerification)
      ..write(',');
  }
  $buf
    ..writeln()
    ..write('  created: ')
    ..write(created)
    ..write(',');
  if (currency != null) {
    $buf
      ..writeln()
      ..write('  currency: ')
      ..write(currency)
      ..write(',');
  }
  if (customer != null) {
    $buf
      ..writeln()
      ..write('  customer: ')
      ..write(customer)
      ..write(',');
  }
  if (eps != null) {
    $buf
      ..writeln()
      ..write('  eps: ')
      ..write(eps)
      ..write(',');
  }
  $buf
    ..writeln()
    ..write('  flow: ')
    ..write(flow)
    ..write(',');
  if (giropay != null) {
    $buf
      ..writeln()
      ..write('  giropay: ')
      ..write(giropay)
      ..write(',');
  }
  $buf
    ..writeln()
    ..write('  id: ')
    ..write(id)
    ..write(',');
  if (ideal != null) {
    $buf
      ..writeln()
      ..write('  ideal: ')
      ..write(ideal)
      ..write(',');
  }
  if (klarna != null) {
    $buf
      ..writeln()
      ..write('  klarna: ')
      ..write(klarna)
      ..write(',');
  }
  $buf
    ..writeln()
    ..write('  livemode: ')
    ..write(livemode)
    ..write(',');
  if (metadata != null) {
    $buf
      ..writeln()
      ..write('  metadata: ')
      ..write(metadata)
      ..write(',');
  }
  if (multibanco != null) {
    $buf
      ..writeln()
      ..write('  multibanco: ')
      ..write(multibanco)
      ..write(',');
  }
  $buf
    ..writeln()
    ..write('  object: ')
    ..write(object)
    ..write(',');
  if (owner != null) {
    $buf
      ..writeln()
      ..write('  owner: ')
      ..write(owner)
      ..write(',');
  }
  if (p24 != null) {
    $buf
      ..writeln()
      ..write('  p24: ')
      ..write(p24)
      ..write(',');
  }
  if (receiver != null) {
    $buf
      ..writeln()
      ..write('  receiver: ')
      ..write(receiver)
      ..write(',');
  }
  if (redirect != null) {
    $buf
      ..writeln()
      ..write('  redirect: ')
      ..write(redirect)
      ..write(',');
  }
  if (sepaCreditTransfer != null) {
    $buf
      ..writeln()
      ..write('  sepa_credit_transfer: ')
      ..write(sepaCreditTransfer)
      ..write(',');
  }
  if (sepaDebit != null) {
    $buf
      ..writeln()
      ..write('  sepa_debit: ')
      ..write(sepaDebit)
      ..write(',');
  }
  if (sofort != null) {
    $buf
      ..writeln()
      ..write('  sofort: ')
      ..write(sofort)
      ..write(',');
  }
  if (sourceOrder != null) {
    $buf
      ..writeln()
      ..write('  source_order: ')
      ..write(sourceOrder)
      ..write(',');
  }
  if (statementDescriptor != null) {
    $buf
      ..writeln()
      ..write('  statement_descriptor: ')
      ..write(statementDescriptor)
      ..write(',');
  }
  $buf
    ..writeln()
    ..write('  status: ')
    ..write(status)
    ..write(',');
  if (threeDSecure != null) {
    $buf
      ..writeln()
      ..write('  three_d_secure: ')
      ..write(threeDSecure)
      ..write(',');
  }
  $buf
    ..writeln()
    ..write('  type: ')
    ..write(type)
    ..write(',');
  if (usage != null) {
    $buf
      ..writeln()
      ..write('  usage: ')
      ..write(usage)
      ..write(',');
  }
  if (wechat != null) {
    $buf
      ..writeln()
      ..write('  wechat: ')
      ..write(wechat)
      ..write(',');
  }
  $buf.write(')');
  return $buf.toString();
}