toString method

  1. @override
String toString()
override

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() {
  return 'SubscriptionModel(id: $id, suspended: $suspended, plan_identifier: $planIdentifier, price_cents: $priceCents, currency: $currency, features: $features, expires_at: $expiresAt, created_at: $createdAt, updated_at: $updatedAt, customer_name: $customerName, customer_email: $customerEmail, cycled_at: $cycledAt, credits_min: $creditsMin, credits_cycle: $creditsCycle, customer_id: $customerId, plan_name: $planName, customer_ref: $customerRef, plan_ref: $planRef, active: $active, in_trial: $inTrial, credits: $credits, credits_based: $creditsBased, recent_invoices: $recentInvoices, subitems: $subitems, logs: $logs, custom_variables: $customVariables)';
}