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('SetupIntent(');
if (application != null) {
$buf
..writeln()
..write(' application: ')
..write(application)
..write(',');
}
if (attachToSelf != null) {
$buf
..writeln()
..write(' attach_to_self: ')
..write(attachToSelf)
..write(',');
}
if (automaticPaymentMethods != null) {
$buf
..writeln()
..write(' automatic_payment_methods: ')
..write(automaticPaymentMethods)
..write(',');
}
if (cancellationReason != null) {
$buf
..writeln()
..write(' cancellation_reason: ')
..write(cancellationReason)
..write(',');
}
if (clientSecret != null) {
$buf
..writeln()
..write(' client_secret: ')
..write(clientSecret)
..write(',');
}
$buf
..writeln()
..write(' created: ')
..write(created)
..write(',');
if (customer != null) {
$buf
..writeln()
..write(' customer: ')
..write(customer)
..write(',');
}
if (description != null) {
$buf
..writeln()
..write(' description: ')
..write(description)
..write(',');
}
if (flowDirections != null) {
$buf
..writeln()
..write(' flow_directions: ')
..write(flowDirections)
..write(',');
}
$buf
..writeln()
..write(' id: ')
..write(id)
..write(',');
if (lastSetupError != null) {
$buf
..writeln()
..write(' last_setup_error: ')
..write(lastSetupError)
..write(',');
}
if (latestAttempt != null) {
$buf
..writeln()
..write(' latest_attempt: ')
..write(latestAttempt)
..write(',');
}
$buf
..writeln()
..write(' livemode: ')
..write(livemode)
..write(',');
if (mandate != null) {
$buf
..writeln()
..write(' mandate: ')
..write(mandate)
..write(',');
}
if (metadata != null) {
$buf
..writeln()
..write(' metadata: ')
..write(metadata)
..write(',');
}
if (nextAction != null) {
$buf
..writeln()
..write(' next_action: ')
..write(nextAction)
..write(',');
}
$buf
..writeln()
..write(' object: ')
..write(object)
..write(',');
if (onBehalfOf != null) {
$buf
..writeln()
..write(' on_behalf_of: ')
..write(onBehalfOf)
..write(',');
}
if (paymentMethod != null) {
$buf
..writeln()
..write(' payment_method: ')
..write(paymentMethod)
..write(',');
}
if (paymentMethodConfigurationDetails != null) {
$buf
..writeln()
..write(' payment_method_configuration_details: ')
..write(paymentMethodConfigurationDetails)
..write(',');
}
if (paymentMethodOptions != null) {
$buf
..writeln()
..write(' payment_method_options: ')
..write(paymentMethodOptions)
..write(',');
}
$buf
..writeln()
..write(' payment_method_types: ')
..write(paymentMethodTypes)
..write(',');
if (singleUseMandate != null) {
$buf
..writeln()
..write(' single_use_mandate: ')
..write(singleUseMandate)
..write(',');
}
$buf
..writeln()
..write(' status: ')
..write(status)
..write(',');
$buf
..writeln()
..write(' usage: ')
..write(usage)
..write(',');
$buf.write(')');
return $buf.toString();
}