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('Customer(');
if (address != null) {
$buf
..writeln()
..write(' address: ')
..write(address)
..write(',');
}
if (balance != null) {
$buf
..writeln()
..write(' balance: ')
..write(balance)
..write(',');
}
if (cashBalance != null) {
$buf
..writeln()
..write(' cash_balance: ')
..write(cashBalance)
..write(',');
}
$buf
..writeln()
..write(' created: ')
..write(created)
..write(',');
if (currency != null) {
$buf
..writeln()
..write(' currency: ')
..write(currency)
..write(',');
}
if (defaultSource != null) {
$buf
..writeln()
..write(' default_source: ')
..write(defaultSource)
..write(',');
}
if (delinquent != null) {
$buf
..writeln()
..write(' delinquent: ')
..write(delinquent)
..write(',');
}
if (description != null) {
$buf
..writeln()
..write(' description: ')
..write(description)
..write(',');
}
if (discount != null) {
$buf
..writeln()
..write(' discount: ')
..write(discount)
..write(',');
}
if (email != null) {
$buf
..writeln()
..write(' email: ')
..write(email)
..write(',');
}
$buf
..writeln()
..write(' id: ')
..write(id)
..write(',');
if (invoiceCreditBalance != null) {
$buf
..writeln()
..write(' invoice_credit_balance: ')
..write(invoiceCreditBalance)
..write(',');
}
if (invoicePrefix != null) {
$buf
..writeln()
..write(' invoice_prefix: ')
..write(invoicePrefix)
..write(',');
}
if (invoiceSettings != null) {
$buf
..writeln()
..write(' invoice_settings: ')
..write(invoiceSettings)
..write(',');
}
$buf
..writeln()
..write(' livemode: ')
..write(livemode)
..write(',');
if (metadata != null) {
$buf
..writeln()
..write(' metadata: ')
..write(metadata)
..write(',');
}
if (name != null) {
$buf
..writeln()
..write(' name: ')
..write(name)
..write(',');
}
if (nextInvoiceSequence != null) {
$buf
..writeln()
..write(' next_invoice_sequence: ')
..write(nextInvoiceSequence)
..write(',');
}
$buf
..writeln()
..write(' object: ')
..write(object)
..write(',');
if (phone != null) {
$buf
..writeln()
..write(' phone: ')
..write(phone)
..write(',');
}
if (preferredLocales != null) {
$buf
..writeln()
..write(' preferred_locales: ')
..write(preferredLocales)
..write(',');
}
if (shipping != null) {
$buf
..writeln()
..write(' shipping: ')
..write(shipping)
..write(',');
}
if (sources != null) {
$buf
..writeln()
..write(' sources: ')
..write(sources)
..write(',');
}
if (subscriptions != null) {
$buf
..writeln()
..write(' subscriptions: ')
..write(subscriptions)
..write(',');
}
if (tax != null) {
$buf
..writeln()
..write(' tax: ')
..write(tax)
..write(',');
}
if (taxExempt != null) {
$buf
..writeln()
..write(' tax_exempt: ')
..write(taxExempt)
..write(',');
}
if (taxIds != null) {
$buf
..writeln()
..write(' tax_ids: ')
..write(taxIds)
..write(',');
}
if (testClock != null) {
$buf
..writeln()
..write(' test_clock: ')
..write(testClock)
..write(',');
}
$buf.write(')');
return $buf.toString();
}