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('CreditNoteCreateOptions(');
if (amount != null) {
$buf
..writeln()
..write(' amount: ')
..write(amount)
..write(',');
}
if (creditAmount != null) {
$buf
..writeln()
..write(' credit_amount: ')
..write(creditAmount)
..write(',');
}
if (effectiveAt != null) {
$buf
..writeln()
..write(' effective_at: ')
..write(effectiveAt)
..write(',');
}
if (expand != null) {
$buf
..writeln()
..write(' expand: ')
..write(expand)
..write(',');
}
$buf
..writeln()
..write(' invoice: ')
..write(invoice)
..write(',');
if (lines != null) {
$buf
..writeln()
..write(' lines: ')
..write(lines)
..write(',');
}
if (memo != null) {
$buf
..writeln()
..write(' memo: ')
..write(memo)
..write(',');
}
if (metadata != null) {
$buf
..writeln()
..write(' metadata: ')
..write(metadata)
..write(',');
}
if (outOfBandAmount != null) {
$buf
..writeln()
..write(' out_of_band_amount: ')
..write(outOfBandAmount)
..write(',');
}
if (reason != null) {
$buf
..writeln()
..write(' reason: ')
..write(reason)
..write(',');
}
if (refund != null) {
$buf
..writeln()
..write(' refund: ')
..write(refund)
..write(',');
}
if (refundAmount != null) {
$buf
..writeln()
..write(' refund_amount: ')
..write(refundAmount)
..write(',');
}
if (shippingCost != null) {
$buf
..writeln()
..write(' shipping_cost: ')
..write(shippingCost)
..write(',');
}
$buf.write(')');
return $buf.toString();
}