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('ClimateOrder(');
$buf
..writeln()
..write(' amount_fees: ')
..write(amountFees)
..write(',');
$buf
..writeln()
..write(' amount_subtotal: ')
..write(amountSubtotal)
..write(',');
$buf
..writeln()
..write(' amount_total: ')
..write(amountTotal)
..write(',');
if (beneficiary != null) {
$buf
..writeln()
..write(' beneficiary: ')
..write(beneficiary)
..write(',');
}
if (canceledAt != null) {
$buf
..writeln()
..write(' canceled_at: ')
..write(canceledAt)
..write(',');
}
if (cancellationReason != null) {
$buf
..writeln()
..write(' cancellation_reason: ')
..write(cancellationReason)
..write(',');
}
if (certificate != null) {
$buf
..writeln()
..write(' certificate: ')
..write(certificate)
..write(',');
}
if (confirmedAt != null) {
$buf
..writeln()
..write(' confirmed_at: ')
..write(confirmedAt)
..write(',');
}
$buf
..writeln()
..write(' created: ')
..write(created)
..write(',');
$buf
..writeln()
..write(' currency: ')
..write(currency)
..write(',');
if (delayedAt != null) {
$buf
..writeln()
..write(' delayed_at: ')
..write(delayedAt)
..write(',');
}
if (deliveredAt != null) {
$buf
..writeln()
..write(' delivered_at: ')
..write(deliveredAt)
..write(',');
}
$buf
..writeln()
..write(' delivery_details: ')
..write(deliveryDetails)
..write(',');
$buf
..writeln()
..write(' expected_delivery_year: ')
..write(expectedDeliveryYear)
..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(' metric_tons: ')
..write(metricTons)
..write(',');
$buf
..writeln()
..write(' object: ')
..write(object)
..write(',');
$buf
..writeln()
..write(' product: ')
..write(product)
..write(',');
if (productSubstitutedAt != null) {
$buf
..writeln()
..write(' product_substituted_at: ')
..write(productSubstitutedAt)
..write(',');
}
$buf
..writeln()
..write(' status: ')
..write(status)
..write(',');
$buf.write(')');
return $buf.toString();
}