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('PaymentIntentCard(');
  if (captureMethod != null) {
    $buf
      ..writeln()
      ..write('  capture_method: ')
      ..write(captureMethod)
      ..write(',');
  }
  if (cvcToken != null) {
    $buf
      ..writeln()
      ..write('  cvc_token: ')
      ..write(cvcToken)
      ..write(',');
  }
  if (installments != null) {
    $buf
      ..writeln()
      ..write('  installments: ')
      ..write(installments)
      ..write(',');
  }
  if (mandateOptions != null) {
    $buf
      ..writeln()
      ..write('  mandate_options: ')
      ..write(mandateOptions)
      ..write(',');
  }
  if (moto != null) {
    $buf
      ..writeln()
      ..write('  moto: ')
      ..write(moto)
      ..write(',');
  }
  if (network != null) {
    $buf
      ..writeln()
      ..write('  network: ')
      ..write(network)
      ..write(',');
  }
  if (requestExtendedAuthorization != null) {
    $buf
      ..writeln()
      ..write('  request_extended_authorization: ')
      ..write(requestExtendedAuthorization)
      ..write(',');
  }
  if (requestIncrementalAuthorization != null) {
    $buf
      ..writeln()
      ..write('  request_incremental_authorization: ')
      ..write(requestIncrementalAuthorization)
      ..write(',');
  }
  if (requestMulticapture != null) {
    $buf
      ..writeln()
      ..write('  request_multicapture: ')
      ..write(requestMulticapture)
      ..write(',');
  }
  if (requestOvercapture != null) {
    $buf
      ..writeln()
      ..write('  request_overcapture: ')
      ..write(requestOvercapture)
      ..write(',');
  }
  if (requestThreeDSecure != null) {
    $buf
      ..writeln()
      ..write('  request_three_d_secure: ')
      ..write(requestThreeDSecure)
      ..write(',');
  }
  if (requireCvcRecollection != null) {
    $buf
      ..writeln()
      ..write('  require_cvc_recollection: ')
      ..write(requireCvcRecollection)
      ..write(',');
  }
  if (setupFutureUsage != null) {
    $buf
      ..writeln()
      ..write('  setup_future_usage: ')
      ..write(setupFutureUsage)
      ..write(',');
  }
  if (statementDescriptorSuffixKana != null) {
    $buf
      ..writeln()
      ..write('  statement_descriptor_suffix_kana: ')
      ..write(statementDescriptorSuffixKana)
      ..write(',');
  }
  if (statementDescriptorSuffixKanji != null) {
    $buf
      ..writeln()
      ..write('  statement_descriptor_suffix_kanji: ')
      ..write(statementDescriptorSuffixKanji)
      ..write(',');
  }
  if (threeDSecure != null) {
    $buf
      ..writeln()
      ..write('  three_d_secure: ')
      ..write(threeDSecure)
      ..write(',');
  }
  $buf.write(')');
  return $buf.toString();
}