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('BankAccount(');
if (account != null) {
$buf
..writeln()
..write(' account: ')
..write(account)
..write(',');
}
if (accountHolderName != null) {
$buf
..writeln()
..write(' account_holder_name: ')
..write(accountHolderName)
..write(',');
}
if (accountHolderType != null) {
$buf
..writeln()
..write(' account_holder_type: ')
..write(accountHolderType)
..write(',');
}
if (accountType != null) {
$buf
..writeln()
..write(' account_type: ')
..write(accountType)
..write(',');
}
if (availablePayoutMethods != null) {
$buf
..writeln()
..write(' available_payout_methods: ')
..write(availablePayoutMethods)
..write(',');
}
if (bankName != null) {
$buf
..writeln()
..write(' bank_name: ')
..write(bankName)
..write(',');
}
$buf
..writeln()
..write(' country: ')
..write(country)
..write(',');
$buf
..writeln()
..write(' currency: ')
..write(currency)
..write(',');
if (customer != null) {
$buf
..writeln()
..write(' customer: ')
..write(customer)
..write(',');
}
if (defaultForCurrency != null) {
$buf
..writeln()
..write(' default_for_currency: ')
..write(defaultForCurrency)
..write(',');
}
if (fingerprint != null) {
$buf
..writeln()
..write(' fingerprint: ')
..write(fingerprint)
..write(',');
}
if (futureRequirements != null) {
$buf
..writeln()
..write(' future_requirements: ')
..write(futureRequirements)
..write(',');
}
$buf
..writeln()
..write(' id: ')
..write(id)
..write(',');
$buf
..writeln()
..write(' last4: ')
..write(last4)
..write(',');
if (metadata != null) {
$buf
..writeln()
..write(' metadata: ')
..write(metadata)
..write(',');
}
$buf
..writeln()
..write(' object: ')
..write(object)
..write(',');
if (requirements != null) {
$buf
..writeln()
..write(' requirements: ')
..write(requirements)
..write(',');
}
if (routingNumber != null) {
$buf
..writeln()
..write(' routing_number: ')
..write(routingNumber)
..write(',');
}
$buf
..writeln()
..write(' status: ')
..write(status)
..write(',');
$buf.write(')');
return $buf.toString();
}