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('Payout(');
  $buf
    ..writeln()
    ..write('  amount: ')
    ..write(amount)
    ..write(',');
  $buf
    ..writeln()
    ..write('  arrival_date: ')
    ..write(arrivalDate)
    ..write(',');
  $buf
    ..writeln()
    ..write('  automatic: ')
    ..write(automatic)
    ..write(',');
  if (balanceTransaction != null) {
    $buf
      ..writeln()
      ..write('  balance_transaction: ')
      ..write(balanceTransaction)
      ..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 (destination != null) {
    $buf
      ..writeln()
      ..write('  destination: ')
      ..write(destination)
      ..write(',');
  }
  if (failureBalanceTransaction != null) {
    $buf
      ..writeln()
      ..write('  failure_balance_transaction: ')
      ..write(failureBalanceTransaction)
      ..write(',');
  }
  if (failureCode != null) {
    $buf
      ..writeln()
      ..write('  failure_code: ')
      ..write(failureCode)
      ..write(',');
  }
  if (failureMessage != null) {
    $buf
      ..writeln()
      ..write('  failure_message: ')
      ..write(failureMessage)
      ..write(',');
  }
  $buf
    ..writeln()
    ..write('  id: ')
    ..write(id)
    ..write(',');
  $buf
    ..writeln()
    ..write('  livemode: ')
    ..write(livemode)
    ..write(',');
  if (metadata != null) {
    $buf
      ..writeln()
      ..write('  metadata: ')
      ..write(metadata)
      ..write(',');
  }
  $buf
    ..writeln()
    ..write('  method: ')
    ..write(method)
    ..write(',');
  $buf
    ..writeln()
    ..write('  object: ')
    ..write(object)
    ..write(',');
  if (originalPayout != null) {
    $buf
      ..writeln()
      ..write('  original_payout: ')
      ..write(originalPayout)
      ..write(',');
  }
  $buf
    ..writeln()
    ..write('  reconciliation_status: ')
    ..write(reconciliationStatus)
    ..write(',');
  if (reversedBy != null) {
    $buf
      ..writeln()
      ..write('  reversed_by: ')
      ..write(reversedBy)
      ..write(',');
  }
  $buf
    ..writeln()
    ..write('  source_type: ')
    ..write(sourceType)
    ..write(',');
  if (statementDescriptor != null) {
    $buf
      ..writeln()
      ..write('  statement_descriptor: ')
      ..write(statementDescriptor)
      ..write(',');
  }
  $buf
    ..writeln()
    ..write('  status: ')
    ..write(status)
    ..write(',');
  $buf
    ..writeln()
    ..write('  type: ')
    ..write(type)
    ..write(',');
  $buf.write(')');
  return $buf.toString();
}