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('SubscriptionsResourcePendingUpdate(');
if (billingCycleAnchor != null) {
$buf
..writeln()
..write(' billing_cycle_anchor: ')
..write(billingCycleAnchor)
..write(',');
}
$buf
..writeln()
..write(' expires_at: ')
..write(expiresAt)
..write(',');
if (subscriptionItems != null) {
$buf
..writeln()
..write(' subscription_items: ')
..write(subscriptionItems)
..write(',');
}
if (trialEnd != null) {
$buf
..writeln()
..write(' trial_end: ')
..write(trialEnd)
..write(',');
}
if (trialFromPlan != null) {
$buf
..writeln()
..write(' trial_from_plan: ')
..write(trialFromPlan)
..write(',');
}
$buf.write(')');
return $buf.toString();
}