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('InvoiceCreateOptions(');
if (accountTaxIds != null) {
$buf
..writeln()
..write(' account_tax_ids: ')
..write(accountTaxIds)
..write(',');
}
if (applicationFeeAmount != null) {
$buf
..writeln()
..write(' application_fee_amount: ')
..write(applicationFeeAmount)
..write(',');
}
if (autoAdvance != null) {
$buf
..writeln()
..write(' auto_advance: ')
..write(autoAdvance)
..write(',');
}
if (automaticTax != null) {
$buf
..writeln()
..write(' automatic_tax: ')
..write(automaticTax)
..write(',');
}
if (collectionMethod != null) {
$buf
..writeln()
..write(' collection_method: ')
..write(collectionMethod)
..write(',');
}
if (currency != null) {
$buf
..writeln()
..write(' currency: ')
..write(currency)
..write(',');
}
if (customFields != null) {
$buf
..writeln()
..write(' custom_fields: ')
..write(customFields)
..write(',');
}
if (customer != null) {
$buf
..writeln()
..write(' customer: ')
..write(customer)
..write(',');
}
if (daysUntilDue != null) {
$buf
..writeln()
..write(' days_until_due: ')
..write(daysUntilDue)
..write(',');
}
if (defaultPaymentMethod != null) {
$buf
..writeln()
..write(' default_payment_method: ')
..write(defaultPaymentMethod)
..write(',');
}
if (defaultSource != null) {
$buf
..writeln()
..write(' default_source: ')
..write(defaultSource)
..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 (dueDate != null) {
$buf
..writeln()
..write(' due_date: ')
..write(dueDate)
..write(',');
}
if (effectiveAt != null) {
$buf
..writeln()
..write(' effective_at: ')
..write(effectiveAt)
..write(',');
}
if (expand != null) {
$buf
..writeln()
..write(' expand: ')
..write(expand)
..write(',');
}
if (footer != null) {
$buf
..writeln()
..write(' footer: ')
..write(footer)
..write(',');
}
if (fromInvoice != null) {
$buf
..writeln()
..write(' from_invoice: ')
..write(fromInvoice)
..write(',');
}
if (issuer != null) {
$buf
..writeln()
..write(' issuer: ')
..write(issuer)
..write(',');
}
if (metadata != null) {
$buf
..writeln()
..write(' metadata: ')
..write(metadata)
..write(',');
}
if (number != null) {
$buf
..writeln()
..write(' number: ')
..write(number)
..write(',');
}
if (onBehalfOf != null) {
$buf
..writeln()
..write(' on_behalf_of: ')
..write(onBehalfOf)
..write(',');
}
if (paymentSettings != null) {
$buf
..writeln()
..write(' payment_settings: ')
..write(paymentSettings)
..write(',');
}
if (pendingInvoiceItemsBehavior != null) {
$buf
..writeln()
..write(' pending_invoice_items_behavior: ')
..write(pendingInvoiceItemsBehavior)
..write(',');
}
if (rendering != null) {
$buf
..writeln()
..write(' rendering: ')
..write(rendering)
..write(',');
}
if (renderingOptions != null) {
$buf
..writeln()
..write(' rendering_options: ')
..write(renderingOptions)
..write(',');
}
if (shippingCost != null) {
$buf
..writeln()
..write(' shipping_cost: ')
..write(shippingCost)
..write(',');
}
if (shippingDetails != null) {
$buf
..writeln()
..write(' shipping_details: ')
..write(shippingDetails)
..write(',');
}
if (statementDescriptor != null) {
$buf
..writeln()
..write(' statement_descriptor: ')
..write(statementDescriptor)
..write(',');
}
if (subscription != null) {
$buf
..writeln()
..write(' subscription: ')
..write(subscription)
..write(',');
}
if (transferData != null) {
$buf
..writeln()
..write(' transfer_data: ')
..write(transferData)
..write(',');
}
$buf.write(')');
return $buf.toString();
}