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('SourceTypeMultibanco(');
  if (entity != null) {
    $buf
      ..writeln()
      ..write('  entity: ')
      ..write(entity)
      ..write(',');
  }
  if (reference != null) {
    $buf
      ..writeln()
      ..write('  reference: ')
      ..write(reference)
      ..write(',');
  }
  if (refundAccountHolderAddressCity != null) {
    $buf
      ..writeln()
      ..write('  refund_account_holder_address_city: ')
      ..write(refundAccountHolderAddressCity)
      ..write(',');
  }
  if (refundAccountHolderAddressCountry != null) {
    $buf
      ..writeln()
      ..write('  refund_account_holder_address_country: ')
      ..write(refundAccountHolderAddressCountry)
      ..write(',');
  }
  if (refundAccountHolderAddressLine1 != null) {
    $buf
      ..writeln()
      ..write('  refund_account_holder_address_line1: ')
      ..write(refundAccountHolderAddressLine1)
      ..write(',');
  }
  if (refundAccountHolderAddressLine2 != null) {
    $buf
      ..writeln()
      ..write('  refund_account_holder_address_line2: ')
      ..write(refundAccountHolderAddressLine2)
      ..write(',');
  }
  if (refundAccountHolderAddressPostalCode != null) {
    $buf
      ..writeln()
      ..write('  refund_account_holder_address_postal_code: ')
      ..write(refundAccountHolderAddressPostalCode)
      ..write(',');
  }
  if (refundAccountHolderAddressState != null) {
    $buf
      ..writeln()
      ..write('  refund_account_holder_address_state: ')
      ..write(refundAccountHolderAddressState)
      ..write(',');
  }
  if (refundAccountHolderName != null) {
    $buf
      ..writeln()
      ..write('  refund_account_holder_name: ')
      ..write(refundAccountHolderName)
      ..write(',');
  }
  if (refundIban != null) {
    $buf
      ..writeln()
      ..write('  refund_iban: ')
      ..write(refundIban)
      ..write(',');
  }
  $buf.write(')');
  return $buf.toString();
}