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() {
  final $buf = StringBuffer()
    ..writeln('SubscriptionScheduleDefaultSettings(');
  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 (defaultPaymentMethod != null) {
    $buf
      ..writeln()
      ..write('  default_payment_method: ')
      ..write(defaultPaymentMethod)
      ..write(',');
  }
  if (description != null) {
    $buf
      ..writeln()
      ..write('  description: ')
      ..write(description)
      ..write(',');
  }
  if (invoiceSettings != null) {
    $buf
      ..writeln()
      ..write('  invoice_settings: ')
      ..write(invoiceSettings)
      ..write(',');
  }
  if (onBehalfOf != null) {
    $buf
      ..writeln()
      ..write('  on_behalf_of: ')
      ..write(onBehalfOf)
      ..write(',');
  }
  if (transferData != null) {
    $buf
      ..writeln()
      ..write('  transfer_data: ')
      ..write(transferData)
      ..write(',');
  }
  $buf.write(')');
  return $buf.toString();
}