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('Refund(');
$buf
..writeln()
..write(' amount: ')
..write(amount)
..write(',');
if (balanceTransaction != null) {
$buf
..writeln()
..write(' balance_transaction: ')
..write(balanceTransaction)
..write(',');
}
if (charge != null) {
$buf
..writeln()
..write(' charge: ')
..write(charge)
..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 (destinationDetails != null) {
$buf
..writeln()
..write(' destination_details: ')
..write(destinationDetails)
..write(',');
}
if (failureBalanceTransaction != null) {
$buf
..writeln()
..write(' failure_balance_transaction: ')
..write(failureBalanceTransaction)
..write(',');
}
if (failureReason != null) {
$buf
..writeln()
..write(' failure_reason: ')
..write(failureReason)
..write(',');
}
$buf
..writeln()
..write(' id: ')
..write(id)
..write(',');
if (instructionsEmail != null) {
$buf
..writeln()
..write(' instructions_email: ')
..write(instructionsEmail)
..write(',');
}
if (metadata != null) {
$buf
..writeln()
..write(' metadata: ')
..write(metadata)
..write(',');
}
if (nextAction != null) {
$buf
..writeln()
..write(' next_action: ')
..write(nextAction)
..write(',');
}
$buf
..writeln()
..write(' object: ')
..write(object)
..write(',');
if (paymentIntent != null) {
$buf
..writeln()
..write(' payment_intent: ')
..write(paymentIntent)
..write(',');
}
if (reason != null) {
$buf
..writeln()
..write(' reason: ')
..write(reason)
..write(',');
}
if (receiptNumber != null) {
$buf
..writeln()
..write(' receipt_number: ')
..write(receiptNumber)
..write(',');
}
if (sourceTransferReversal != null) {
$buf
..writeln()
..write(' source_transfer_reversal: ')
..write(sourceTransferReversal)
..write(',');
}
if (status != null) {
$buf
..writeln()
..write(' status: ')
..write(status)
..write(',');
}
if (transferReversal != null) {
$buf
..writeln()
..write(' transfer_reversal: ')
..write(transferReversal)
..write(',');
}
$buf.write(')');
return $buf.toString();
}