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('Subscription(');
if (application != null) {
$buf
..writeln()
..write(' application: ')
..write(application)
..write(',');
}
if (applicationFeePercent != null) {
$buf
..writeln()
..write(' application_fee_percent: ')
..write(applicationFeePercent)
..write(',');
}
$buf
..writeln()
..write(' automatic_tax: ')
..write(automaticTax)
..write(',');
$buf
..writeln()
..write(' billing_cycle_anchor: ')
..write(billingCycleAnchor)
..write(',');
if (billingCycleAnchorConfig != null) {
$buf
..writeln()
..write(' billing_cycle_anchor_config: ')
..write(billingCycleAnchorConfig)
..write(',');
}
if (billingThresholds != null) {
$buf
..writeln()
..write(' billing_thresholds: ')
..write(billingThresholds)
..write(',');
}
if (cancelAt != null) {
$buf
..writeln()
..write(' cancel_at: ')
..write(cancelAt)
..write(',');
}
$buf
..writeln()
..write(' cancel_at_period_end: ')
..write(cancelAtPeriodEnd)
..write(',');
if (canceledAt != null) {
$buf
..writeln()
..write(' canceled_at: ')
..write(canceledAt)
..write(',');
}
if (cancellationDetails != null) {
$buf
..writeln()
..write(' cancellation_details: ')
..write(cancellationDetails)
..write(',');
}
$buf
..writeln()
..write(' collection_method: ')
..write(collectionMethod)
..write(',');
$buf
..writeln()
..write(' created: ')
..write(created)
..write(',');
$buf
..writeln()
..write(' currency: ')
..write(currency)
..write(',');
$buf
..writeln()
..write(' current_period_end: ')
..write(currentPeriodEnd)
..write(',');
$buf
..writeln()
..write(' current_period_start: ')
..write(currentPeriodStart)
..write(',');
$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 (discount != null) {
$buf
..writeln()
..write(' discount: ')
..write(discount)
..write(',');
}
if (endedAt != null) {
$buf
..writeln()
..write(' ended_at: ')
..write(endedAt)
..write(',');
}
$buf
..writeln()
..write(' id: ')
..write(id)
..write(',');
$buf
..writeln()
..write(' items: ')
..write(items)
..write(',');
if (latestInvoice != null) {
$buf
..writeln()
..write(' latest_invoice: ')
..write(latestInvoice)
..write(',');
}
$buf
..writeln()
..write(' livemode: ')
..write(livemode)
..write(',');
$buf
..writeln()
..write(' metadata: ')
..write(metadata)
..write(',');
if (nextPendingInvoiceItemInvoice != null) {
$buf
..writeln()
..write(' next_pending_invoice_item_invoice: ')
..write(nextPendingInvoiceItemInvoice)
..write(',');
}
$buf
..writeln()
..write(' object: ')
..write(object)
..write(',');
if (onBehalfOf != null) {
$buf
..writeln()
..write(' on_behalf_of: ')
..write(onBehalfOf)
..write(',');
}
if (pauseCollection != null) {
$buf
..writeln()
..write(' pause_collection: ')
..write(pauseCollection)
..write(',');
}
if (paymentSettings != null) {
$buf
..writeln()
..write(' payment_settings: ')
..write(paymentSettings)
..write(',');
}
if (pendingInvoiceItemInterval != null) {
$buf
..writeln()
..write(' pending_invoice_item_interval: ')
..write(pendingInvoiceItemInterval)
..write(',');
}
if (pendingSetupIntent != null) {
$buf
..writeln()
..write(' pending_setup_intent: ')
..write(pendingSetupIntent)
..write(',');
}
if (pendingUpdate != null) {
$buf
..writeln()
..write(' pending_update: ')
..write(pendingUpdate)
..write(',');
}
if (schedule != null) {
$buf
..writeln()
..write(' schedule: ')
..write(schedule)
..write(',');
}
$buf
..writeln()
..write(' start_date: ')
..write(startDate)
..write(',');
$buf
..writeln()
..write(' status: ')
..write(status)
..write(',');
if (testClock != null) {
$buf
..writeln()
..write(' test_clock: ')
..write(testClock)
..write(',');
}
if (transferData != null) {
$buf
..writeln()
..write(' transfer_data: ')
..write(transferData)
..write(',');
}
if (trialEnd != null) {
$buf
..writeln()
..write(' trial_end: ')
..write(trialEnd)
..write(',');
}
if (trialSettings != null) {
$buf
..writeln()
..write(' trial_settings: ')
..write(trialSettings)
..write(',');
}
if (trialStart != null) {
$buf
..writeln()
..write(' trial_start: ')
..write(trialStart)
..write(',');
}
$buf.write(')');
return $buf.toString();
}