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('QuoteCreateOptions(');
if (applicationFeeAmount != null) {
$buf
..writeln()
..write(' application_fee_amount: ')
..write(applicationFeeAmount)
..write(',');
}
if (applicationFeePercent != null) {
$buf
..writeln()
..write(' application_fee_percent: ')
..write(applicationFeePercent)
..write(',');
}
if (automaticTax != null) {
$buf
..writeln()
..write(' automatic_tax: ')
..write(automaticTax)
..write(',');
}
if (collectionMethod != null) {
$buf
..writeln()
..write(' collection_method: ')
..write(collectionMethod)
..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(',');
}
if (discounts != null) {
$buf
..writeln()
..write(' discounts: ')
..write(discounts)
..write(',');
}
if (expand != null) {
$buf
..writeln()
..write(' expand: ')
..write(expand)
..write(',');
}
if (expiresAt != null) {
$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(',');
}
if (invoiceSettings != null) {
$buf
..writeln()
..write(' invoice_settings: ')
..write(invoiceSettings)
..write(',');
}
if (lineItems != null) {
$buf
..writeln()
..write(' line_items: ')
..write(lineItems)
..write(',');
}
if (metadata != null) {
$buf
..writeln()
..write(' metadata: ')
..write(metadata)
..write(',');
}
if (onBehalfOf != null) {
$buf
..writeln()
..write(' on_behalf_of: ')
..write(onBehalfOf)
..write(',');
}
if (subscriptionData != null) {
$buf
..writeln()
..write(' subscription_data: ')
..write(subscriptionData)
..write(',');
}
if (testClock != null) {
$buf
..writeln()
..write(' test_clock: ')
..write(testClock)
..write(',');
}
if (transferData != null) {
$buf
..writeln()
..write(' transfer_data: ')
..write(transferData)
..write(',');
}
$buf.write(')');
return $buf.toString();
}