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('TreasuryOutboundTransfer(');
  $buf
    ..writeln()
    ..write('  amount: ')
    ..write(amount)
    ..write(',');
  $buf
    ..writeln()
    ..write('  cancelable: ')
    ..write(cancelable)
    ..write(',');
  $buf
    ..writeln()
    ..write('  created: ')
    ..write(created)
    ..write(',');
  $buf
    ..writeln()
    ..write('  currency: ')
    ..write(currency)
    ..write(',');
  if (description != null) {
    $buf
      ..writeln()
      ..write('  description: ')
      ..write(description)
      ..write(',');
  }
  if (destinationPaymentMethod != null) {
    $buf
      ..writeln()
      ..write('  destination_payment_method: ')
      ..write(destinationPaymentMethod)
      ..write(',');
  }
  $buf
    ..writeln()
    ..write('  destination_payment_method_details: ')
    ..write(destinationPaymentMethodDetails)
    ..write(',');
  $buf
    ..writeln()
    ..write('  expected_arrival_date: ')
    ..write(expectedArrivalDate)
    ..write(',');
  $buf
    ..writeln()
    ..write('  financial_account: ')
    ..write(financialAccount)
    ..write(',');
  if (hostedRegulatoryReceiptUrl != null) {
    $buf
      ..writeln()
      ..write('  hosted_regulatory_receipt_url: ')
      ..write(hostedRegulatoryReceiptUrl)
      ..write(',');
  }
  $buf
    ..writeln()
    ..write('  id: ')
    ..write(id)
    ..write(',');
  $buf
    ..writeln()
    ..write('  livemode: ')
    ..write(livemode)
    ..write(',');
  $buf
    ..writeln()
    ..write('  metadata: ')
    ..write(metadata)
    ..write(',');
  $buf
    ..writeln()
    ..write('  object: ')
    ..write(object)
    ..write(',');
  if (returnedDetails != null) {
    $buf
      ..writeln()
      ..write('  returned_details: ')
      ..write(returnedDetails)
      ..write(',');
  }
  $buf
    ..writeln()
    ..write('  statement_descriptor: ')
    ..write(statementDescriptor)
    ..write(',');
  $buf
    ..writeln()
    ..write('  status: ')
    ..write(status)
    ..write(',');
  $buf
    ..writeln()
    ..write('  status_transitions: ')
    ..write(statusTransitions)
    ..write(',');
  $buf
    ..writeln()
    ..write('  transaction: ')
    ..write(transaction)
    ..write(',');
  $buf.write(')');
  return $buf.toString();
}