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('Quote(');
$buf
..writeln()
..write(' amount_subtotal: ')
..write(amountSubtotal)
..write(',');
$buf
..writeln()
..write(' amount_total: ')
..write(amountTotal)
..write(',');
if (application != null) {
$buf
..writeln()
..write(' application: ')
..write(application)
..write(',');
}
if (applicationFeeAmount != null) {
$buf
..writeln()
..write(' application_fee_amount: ')
..write(applicationFeeAmount)
..write(',');
}
if (applicationFeePercent != null) {
$buf
..writeln()
..write(' application_fee_percent: ')
..write(applicationFeePercent)
..write(',');
}
$buf
..writeln()
..write(' automatic_tax: ')
..write(automaticTax)
..write(',');
$buf
..writeln()
..write(' collection_method: ')
..write(collectionMethod)
..write(',');
$buf
..writeln()
..write(' computed: ')
..write(computed)
..write(',');
$buf
..writeln()
..write(' created: ')
..write(created)
..write(',');
if (currency != null) {
$buf
..writeln()
..write(' currency: ')
..write(currency)
..write(',');
}
if (customer != null) {
$buf
..writeln()
..write(' customer: ')
..write(customer)
..write(',');
}
if (defaultTaxRates != null) {
$buf
..writeln()
..write(' default_tax_rates: ')
..write(defaultTaxRates)
..write(',');
}
if (description != null) {
$buf
..writeln()
..write(' description: ')
..write(description)
..write(',');
}
$buf
..writeln()
..write(' discounts: ')
..write(discounts)
..write(',');
$buf
..writeln()
..write(' expires_at: ')
..write(expiresAt)
..write(',');
if (footer != null) {
$buf
..writeln()
..write(' footer: ')
..write(footer)
..write(',');
}
if (fromQuote != null) {
$buf
..writeln()
..write(' from_quote: ')
..write(fromQuote)
..write(',');
}
if (header != null) {
$buf
..writeln()
..write(' header: ')
..write(header)
..write(',');
}
$buf
..writeln()
..write(' id: ')
..write(id)
..write(',');
if (invoice != null) {
$buf
..writeln()
..write(' invoice: ')
..write(invoice)
..write(',');
}
$buf
..writeln()
..write(' invoice_settings: ')
..write(invoiceSettings)
..write(',');
if (lineItems != null) {
$buf
..writeln()
..write(' line_items: ')
..write(lineItems)
..write(',');
}
$buf
..writeln()
..write(' livemode: ')
..write(livemode)
..write(',');
$buf
..writeln()
..write(' metadata: ')
..write(metadata)
..write(',');
if (number != null) {
$buf
..writeln()
..write(' number: ')
..write(number)
..write(',');
}
$buf
..writeln()
..write(' object: ')
..write(object)
..write(',');
if (onBehalfOf != null) {
$buf
..writeln()
..write(' on_behalf_of: ')
..write(onBehalfOf)
..write(',');
}
$buf
..writeln()
..write(' status: ')
..write(status)
..write(',');
$buf
..writeln()
..write(' status_transitions: ')
..write(statusTransitions)
..write(',');
if (subscription != null) {
$buf
..writeln()
..write(' subscription: ')
..write(subscription)
..write(',');
}
$buf
..writeln()
..write(' subscription_data: ')
..write(subscriptionData)
..write(',');
if (subscriptionSchedule != null) {
$buf
..writeln()
..write(' subscription_schedule: ')
..write(subscriptionSchedule)
..write(',');
}
if (testClock != null) {
$buf
..writeln()
..write(' test_clock: ')
..write(testClock)
..write(',');
}
$buf
..writeln()
..write(' total_details: ')
..write(totalDetails)
..write(',');
if (transferData != null) {
$buf
..writeln()
..write(' transfer_data: ')
..write(transferData)
..write(',');
}
$buf.write(')');
return $buf.toString();
}