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('SessionSubscriptionData(');
if (applicationFeePercent != null) {
$buf
..writeln()
..write(' application_fee_percent: ')
..write(applicationFeePercent)
..write(',');
}
if (billingCycleAnchor != null) {
$buf
..writeln()
..write(' billing_cycle_anchor: ')
..write(billingCycleAnchor)
..write(',');
}
if (defaultTaxRates != null) {
$buf
..writeln()
..write(' default_tax_rates: ')
..write(defaultTaxRates)
..write(',');
}
if (description != null) {
$buf
..writeln()
..write(' description: ')
..write(description)
..write(',');
}
if (invoiceSettings != null) {
$buf
..writeln()
..write(' invoice_settings: ')
..write(invoiceSettings)
..write(',');
}
if (metadata != null) {
$buf
..writeln()
..write(' metadata: ')
..write(metadata)
..write(',');
}
if (onBehalfOf != null) {
$buf
..writeln()
..write(' on_behalf_of: ')
..write(onBehalfOf)
..write(',');
}
if (prorationBehavior != null) {
$buf
..writeln()
..write(' proration_behavior: ')
..write(prorationBehavior)
..write(',');
}
if (transferData != null) {
$buf
..writeln()
..write(' transfer_data: ')
..write(transferData)
..write(',');
}
if (trialEnd != null) {
$buf
..writeln()
..write(' trial_end: ')
..write(trialEnd)
..write(',');
}
if (trialPeriodDays != null) {
$buf
..writeln()
..write(' trial_period_days: ')
..write(trialPeriodDays)
..write(',');
}
if (trialSettings != null) {
$buf
..writeln()
..write(' trial_settings: ')
..write(trialSettings)
..write(',');
}
$buf.write(')');
return $buf.toString();
}