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('CheckoutSessionCreateOptions(');
if (afterExpiration != null) {
$buf
..writeln()
..write(' after_expiration: ')
..write(afterExpiration)
..write(',');
}
if (allowPromotionCodes != null) {
$buf
..writeln()
..write(' allow_promotion_codes: ')
..write(allowPromotionCodes)
..write(',');
}
if (automaticTax != null) {
$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 (consentCollection != null) {
$buf
..writeln()
..write(' consent_collection: ')
..write(consentCollection)
..write(',');
}
if (currency != null) {
$buf
..writeln()
..write(' currency: ')
..write(currency)
..write(',');
}
if (customFields != null) {
$buf
..writeln()
..write(' custom_fields: ')
..write(customFields)
..write(',');
}
if (customText != null) {
$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 (customerEmail != null) {
$buf
..writeln()
..write(' customer_email: ')
..write(customerEmail)
..write(',');
}
if (customerUpdate != null) {
$buf
..writeln()
..write(' customer_update: ')
..write(customerUpdate)
..write(',');
}
if (discounts != null) {
$buf
..writeln()
..write(' discounts: ')
..write(discounts)
..write(',');
}
if (expand != null) {
$buf
..writeln()
..write(' expand: ')
..write(expand)
..write(',');
}
if (expiresAt != null) {
$buf
..writeln()
..write(' expires_at: ')
..write(expiresAt)
..write(',');
}
if (invoiceCreation != null) {
$buf
..writeln()
..write(' invoice_creation: ')
..write(invoiceCreation)
..write(',');
}
if (lineItems != null) {
$buf
..writeln()
..write(' line_items: ')
..write(lineItems)
..write(',');
}
if (locale != null) {
$buf
..writeln()
..write(' locale: ')
..write(locale)
..write(',');
}
if (metadata != null) {
$buf
..writeln()
..write(' metadata: ')
..write(metadata)
..write(',');
}
if (mode != null) {
$buf
..writeln()
..write(' mode: ')
..write(mode)
..write(',');
}
if (paymentIntentData != null) {
$buf
..writeln()
..write(' payment_intent_data: ')
..write(paymentIntentData)
..write(',');
}
if (paymentMethodCollection != null) {
$buf
..writeln()
..write(' payment_method_collection: ')
..write(paymentMethodCollection)
..write(',');
}
if (paymentMethodConfiguration != null) {
$buf
..writeln()
..write(' payment_method_configuration: ')
..write(paymentMethodConfiguration)
..write(',');
}
if (paymentMethodOptions != null) {
$buf
..writeln()
..write(' payment_method_options: ')
..write(paymentMethodOptions)
..write(',');
}
if (paymentMethodTypes != null) {
$buf
..writeln()
..write(' payment_method_types: ')
..write(paymentMethodTypes)
..write(',');
}
if (phoneNumberCollection != null) {
$buf
..writeln()
..write(' phone_number_collection: ')
..write(phoneNumberCollection)
..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 (setupIntentData != null) {
$buf
..writeln()
..write(' setup_intent_data: ')
..write(setupIntentData)
..write(',');
}
if (shippingAddressCollection != null) {
$buf
..writeln()
..write(' shipping_address_collection: ')
..write(shippingAddressCollection)
..write(',');
}
if (shippingOptions != null) {
$buf
..writeln()
..write(' shipping_options: ')
..write(shippingOptions)
..write(',');
}
if (submitType != null) {
$buf
..writeln()
..write(' submit_type: ')
..write(submitType)
..write(',');
}
if (subscriptionData != null) {
$buf
..writeln()
..write(' subscription_data: ')
..write(subscriptionData)
..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 (uiMode != null) {
$buf
..writeln()
..write(' ui_mode: ')
..write(uiMode)
..write(',');
}
$buf.write(')');
return $buf.toString();
}