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('CustomerCashBalanceTransaction(');
if (adjustedForOverdraft != null) {
$buf
..writeln()
..write(' adjusted_for_overdraft: ')
..write(adjustedForOverdraft)
..write(',');
}
if (appliedToPayment != null) {
$buf
..writeln()
..write(' applied_to_payment: ')
..write(appliedToPayment)
..write(',');
}
$buf
..writeln()
..write(' created: ')
..write(created)
..write(',');
$buf
..writeln()
..write(' currency: ')
..write(currency)
..write(',');
$buf
..writeln()
..write(' customer: ')
..write(customer)
..write(',');
$buf
..writeln()
..write(' ending_balance: ')
..write(endingBalance)
..write(',');
if (funded != null) {
$buf
..writeln()
..write(' funded: ')
..write(funded)
..write(',');
}
$buf
..writeln()
..write(' id: ')
..write(id)
..write(',');
$buf
..writeln()
..write(' livemode: ')
..write(livemode)
..write(',');
$buf
..writeln()
..write(' net_amount: ')
..write(netAmount)
..write(',');
$buf
..writeln()
..write(' object: ')
..write(object)
..write(',');
if (refundedFromPayment != null) {
$buf
..writeln()
..write(' refunded_from_payment: ')
..write(refundedFromPayment)
..write(',');
}
if (transferredToBalance != null) {
$buf
..writeln()
..write(' transferred_to_balance: ')
..write(transferredToBalance)
..write(',');
}
$buf
..writeln()
..write(' type: ')
..write(type)
..write(',');
if (unappliedFromPayment != null) {
$buf
..writeln()
..write(' unapplied_from_payment: ')
..write(unappliedFromPayment)
..write(',');
}
$buf.write(')');
return $buf.toString();
}