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('ApiErrors(');
if (charge != null) {
$buf
..writeln()
..write(' charge: ')
..write(charge)
..write(',');
}
if (code != null) {
$buf
..writeln()
..write(' code: ')
..write(code)
..write(',');
}
if (declineCode != null) {
$buf
..writeln()
..write(' decline_code: ')
..write(declineCode)
..write(',');
}
if (docUrl != null) {
$buf
..writeln()
..write(' doc_url: ')
..write(docUrl)
..write(',');
}
if (message != null) {
$buf
..writeln()
..write(' message: ')
..write(message)
..write(',');
}
if (param != null) {
$buf
..writeln()
..write(' param: ')
..write(param)
..write(',');
}
if (paymentIntent != null) {
$buf
..writeln()
..write(' payment_intent: ')
..write(paymentIntent)
..write(',');
}
if (paymentMethod != null) {
$buf
..writeln()
..write(' payment_method: ')
..write(paymentMethod)
..write(',');
}
if (paymentMethodType != null) {
$buf
..writeln()
..write(' payment_method_type: ')
..write(paymentMethodType)
..write(',');
}
if (requestLogUrl != null) {
$buf
..writeln()
..write(' request_log_url: ')
..write(requestLogUrl)
..write(',');
}
if (setupIntent != null) {
$buf
..writeln()
..write(' setup_intent: ')
..write(setupIntent)
..write(',');
}
if (source != null) {
$buf
..writeln()
..write(' source: ')
..write(source)
..write(',');
}
$buf
..writeln()
..write(' type: ')
..write(type)
..write(',');
$buf.write(')');
return $buf.toString();
}