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('AccountBusinessProfile(');
if (annualRevenue != null) {
$buf
..writeln()
..write(' annual_revenue: ')
..write(annualRevenue)
..write(',');
}
if (estimatedWorkerCount != null) {
$buf
..writeln()
..write(' estimated_worker_count: ')
..write(estimatedWorkerCount)
..write(',');
}
if (mcc != null) {
$buf
..writeln()
..write(' mcc: ')
..write(mcc)
..write(',');
}
if (monthlyEstimatedRevenue != null) {
$buf
..writeln()
..write(' monthly_estimated_revenue: ')
..write(monthlyEstimatedRevenue)
..write(',');
}
if (name != null) {
$buf
..writeln()
..write(' name: ')
..write(name)
..write(',');
}
if (productDescription != null) {
$buf
..writeln()
..write(' product_description: ')
..write(productDescription)
..write(',');
}
if (supportAddress != null) {
$buf
..writeln()
..write(' support_address: ')
..write(supportAddress)
..write(',');
}
if (supportEmail != null) {
$buf
..writeln()
..write(' support_email: ')
..write(supportEmail)
..write(',');
}
if (supportPhone != null) {
$buf
..writeln()
..write(' support_phone: ')
..write(supportPhone)
..write(',');
}
if (supportUrl != null) {
$buf
..writeln()
..write(' support_url: ')
..write(supportUrl)
..write(',');
}
if (url != null) {
$buf
..writeln()
..write(' url: ')
..write(url)
..write(',');
}
$buf.write(')');
return $buf.toString();
}