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('CheckoutSession(');
if (afterExpiration != null) {
$buf
..writeln()
..write(' after_expiration: ')
..write(afterExpiration)
..write(',');
}
if (allowPromotionCodes != null) {
$buf
..writeln()
..write(' allow_promotion_codes: ')
..write(allowPromotionCodes)
..write(',');
}
if (amountSubtotal != null) {
$buf
..writeln()
..write(' amount_subtotal: ')
..write(amountSubtotal)
..write(',');
}
if (amountTotal != null) {
$buf
..writeln()
..write(' amount_total: ')
..write(amountTotal)
..write(',');
}
$buf
..writeln()
..write(' automatic_tax: ')
..write(automaticTax)
..write(',');
if (billingAddressCollection != null) {
$buf
..writeln()
..write(' billing_address_collection: ')
..write(billingAddressCollection)
..write(',');
}
if (cancelUrl != null) {
$buf
..writeln()
..write(' cancel_url: ')
..write(cancelUrl)
..write(',');
}
if (clientReferenceId != null) {
$buf
..writeln()
..write(' client_reference_id: ')
..write(clientReferenceId)
..write(',');
}
if (clientSecret != null) {
$buf
..writeln()
..write(' client_secret: ')
..write(clientSecret)
..write(',');
}
if (consent != null) {
$buf
..writeln()
..write(' consent: ')
..write(consent)
..write(',');
}
if (consentCollection != null) {
$buf
..writeln()
..write(' consent_collection: ')
..write(consentCollection)
..write(',');
}
$buf
..writeln()
..write(' created: ')
..write(created)
..write(',');
if (currency != null) {
$buf
..writeln()
..write(' currency: ')
..write(currency)
..write(',');
}
if (currencyConversion != null) {
$buf
..writeln()
..write(' currency_conversion: ')
..write(currencyConversion)
..write(',');
}
$buf
..writeln()
..write(' custom_fields: ')
..write(customFields)
..write(',');
$buf
..writeln()
..write(' custom_text: ')
..write(customText)
..write(',');
if (customer != null) {
$buf
..writeln()
..write(' customer: ')
..write(customer)
..write(',');
}
if (customerCreation != null) {
$buf
..writeln()
..write(' customer_creation: ')
..write(customerCreation)
..write(',');
}
if (customerDetails != null) {
$buf
..writeln()
..write(' customer_details: ')
..write(customerDetails)
..write(',');
}
if (customerEmail != null) {
$buf
..writeln()
..write(' customer_email: ')
..write(customerEmail)
..write(',');
}
$buf
..writeln()
..write(' expires_at: ')
..write(expiresAt)
..write(',');
$buf
..writeln()
..write(' id: ')
..write(id)
..write(',');
if (invoice != null) {
$buf
..writeln()
..write(' invoice: ')
..write(invoice)
..write(',');
}
if (invoiceCreation != null) {
$buf
..writeln()
..write(' invoice_creation: ')
..write(invoiceCreation)
..write(',');
}
if (lineItems != null) {
$buf
..writeln()
..write(' line_items: ')
..write(lineItems)
..write(',');
}
$buf
..writeln()
..write(' livemode: ')
..write(livemode)
..write(',');
if (locale != null) {
$buf
..writeln()
..write(' locale: ')
..write(locale)
..write(',');
}
if (metadata != null) {
$buf
..writeln()
..write(' metadata: ')
..write(metadata)
..write(',');
}
$buf
..writeln()
..write(' mode: ')
..write(mode)
..write(',');
$buf
..writeln()
..write(' object: ')
..write(object)
..write(',');
if (paymentIntent != null) {
$buf
..writeln()
..write(' payment_intent: ')
..write(paymentIntent)
..write(',');
}
if (paymentLink != null) {
$buf
..writeln()
..write(' payment_link: ')
..write(paymentLink)
..write(',');
}
if (paymentMethodCollection != null) {
$buf
..writeln()
..write(' payment_method_collection: ')
..write(paymentMethodCollection)
..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(',');
$buf
..writeln()
..write(' payment_status: ')
..write(paymentStatus)
..write(',');
if (phoneNumberCollection != null) {
$buf
..writeln()
..write(' phone_number_collection: ')
..write(phoneNumberCollection)
..write(',');
}
if (recoveredFrom != null) {
$buf
..writeln()
..write(' recovered_from: ')
..write(recoveredFrom)
..write(',');
}
if (redirectOnCompletion != null) {
$buf
..writeln()
..write(' redirect_on_completion: ')
..write(redirectOnCompletion)
..write(',');
}
if (returnUrl != null) {
$buf
..writeln()
..write(' return_url: ')
..write(returnUrl)
..write(',');
}
if (setupIntent != null) {
$buf
..writeln()
..write(' setup_intent: ')
..write(setupIntent)
..write(',');
}
if (shippingAddressCollection != null) {
$buf
..writeln()
..write(' shipping_address_collection: ')
..write(shippingAddressCollection)
..write(',');
}
if (shippingCost != null) {
$buf
..writeln()
..write(' shipping_cost: ')
..write(shippingCost)
..write(',');
}
if (shippingDetails != null) {
$buf
..writeln()
..write(' shipping_details: ')
..write(shippingDetails)
..write(',');
}
$buf
..writeln()
..write(' shipping_options: ')
..write(shippingOptions)
..write(',');
if (status != null) {
$buf
..writeln()
..write(' status: ')
..write(status)
..write(',');
}
if (submitType != null) {
$buf
..writeln()
..write(' submit_type: ')
..write(submitType)
..write(',');
}
if (subscription != null) {
$buf
..writeln()
..write(' subscription: ')
..write(subscription)
..write(',');
}
if (successUrl != null) {
$buf
..writeln()
..write(' success_url: ')
..write(successUrl)
..write(',');
}
if (taxIdCollection != null) {
$buf
..writeln()
..write(' tax_id_collection: ')
..write(taxIdCollection)
..write(',');
}
if (totalDetails != null) {
$buf
..writeln()
..write(' total_details: ')
..write(totalDetails)
..write(',');
}
if (uiMode != null) {
$buf
..writeln()
..write(' ui_mode: ')
..write(uiMode)
..write(',');
}
if (url != null) {
$buf
..writeln()
..write(' url: ')
..write(url)
..write(',');
}
$buf.write(')');
return $buf.toString();
}