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('SubscriptionSchedulePhaseConfiguration(');
$buf
..writeln()
..write(' add_invoice_items: ')
..write(addInvoiceItems)
..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 (billingCycleAnchor != null) {
$buf
..writeln()
..write(' billing_cycle_anchor: ')
..write(billingCycleAnchor)
..write(',');
}
if (billingThresholds != null) {
$buf
..writeln()
..write(' billing_thresholds: ')
..write(billingThresholds)
..write(',');
}
if (collectionMethod != null) {
$buf
..writeln()
..write(' collection_method: ')
..write(collectionMethod)
..write(',');
}
if (coupon != null) {
$buf
..writeln()
..write(' coupon: ')
..write(coupon)
..write(',');
}
$buf
..writeln()
..write(' currency: ')
..write(currency)
..write(',');
if (defaultPaymentMethod != null) {
$buf
..writeln()
..write(' default_payment_method: ')
..write(defaultPaymentMethod)
..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(' end_date: ')
..write(endDate)
..write(',');
if (invoiceSettings != null) {
$buf
..writeln()
..write(' invoice_settings: ')
..write(invoiceSettings)
..write(',');
}
$buf
..writeln()
..write(' items: ')
..write(items)
..write(',');
if (metadata != null) {
$buf
..writeln()
..write(' metadata: ')
..write(metadata)
..write(',');
}
if (onBehalfOf != null) {
$buf
..writeln()
..write(' on_behalf_of: ')
..write(onBehalfOf)
..write(',');
}
$buf
..writeln()
..write(' proration_behavior: ')
..write(prorationBehavior)
..write(',');
$buf
..writeln()
..write(' start_date: ')
..write(startDate)
..write(',');
if (transferData != null) {
$buf
..writeln()
..write(' transfer_data: ')
..write(transferData)
..write(',');
}
if (trialEnd != null) {
$buf
..writeln()
..write(' trial_end: ')
..write(trialEnd)
..write(',');
}
$buf.write(')');
return $buf.toString();
}