toString method
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('TreasuryCreditReversal(');
$buf
..writeln()
..write(' amount: ')
..write(amount)
..write(',');
$buf
..writeln()
..write(' created: ')
..write(created)
..write(',');
$buf
..writeln()
..write(' currency: ')
..write(currency)
..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(' network: ')
..write(network)
..write(',');
$buf
..writeln()
..write(' object: ')
..write(object)
..write(',');
$buf
..writeln()
..write(' received_credit: ')
..write(receivedCredit)
..write(',');
$buf
..writeln()
..write(' status: ')
..write(status)
..write(',');
$buf
..writeln()
..write(' status_transitions: ')
..write(statusTransitions)
..write(',');
if (transaction != null) {
$buf
..writeln()
..write(' transaction: ')
..write(transaction)
..write(',');
}
$buf.write(')');
return $buf.toString();
}