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('IssuingTransaction(');
$buf
..writeln()
..write(' amount: ')
..write(amount)
..write(',');
if (amountDetails != null) {
$buf
..writeln()
..write(' amount_details: ')
..write(amountDetails)
..write(',');
}
if (authorization != null) {
$buf
..writeln()
..write(' authorization: ')
..write(authorization)
..write(',');
}
if (balanceTransaction != null) {
$buf
..writeln()
..write(' balance_transaction: ')
..write(balanceTransaction)
..write(',');
}
$buf
..writeln()
..write(' card: ')
..write(card)
..write(',');
if (cardholder != null) {
$buf
..writeln()
..write(' cardholder: ')
..write(cardholder)
..write(',');
}
$buf
..writeln()
..write(' created: ')
..write(created)
..write(',');
$buf
..writeln()
..write(' currency: ')
..write(currency)
..write(',');
if (dispute != null) {
$buf
..writeln()
..write(' dispute: ')
..write(dispute)
..write(',');
}
$buf
..writeln()
..write(' id: ')
..write(id)
..write(',');
$buf
..writeln()
..write(' livemode: ')
..write(livemode)
..write(',');
$buf
..writeln()
..write(' merchant_amount: ')
..write(merchantAmount)
..write(',');
$buf
..writeln()
..write(' merchant_currency: ')
..write(merchantCurrency)
..write(',');
$buf
..writeln()
..write(' merchant_data: ')
..write(merchantData)
..write(',');
$buf
..writeln()
..write(' metadata: ')
..write(metadata)
..write(',');
if (networkData != null) {
$buf
..writeln()
..write(' network_data: ')
..write(networkData)
..write(',');
}
$buf
..writeln()
..write(' object: ')
..write(object)
..write(',');
if (purchaseDetails != null) {
$buf
..writeln()
..write(' purchase_details: ')
..write(purchaseDetails)
..write(',');
}
if (token != null) {
$buf
..writeln()
..write(' token: ')
..write(token)
..write(',');
}
if (treasury != null) {
$buf
..writeln()
..write(' treasury: ')
..write(treasury)
..write(',');
}
$buf
..writeln()
..write(' type: ')
..write(type)
..write(',');
if (wallet != null) {
$buf
..writeln()
..write(' wallet: ')
..write(wallet)
..write(',');
}
$buf.write(')');
return $buf.toString();
}