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('LegalEntityCompany(');
if (address != null) {
$buf
..writeln()
..write(' address: ')
..write(address)
..write(',');
}
if (addressKana != null) {
$buf
..writeln()
..write(' address_kana: ')
..write(addressKana)
..write(',');
}
if (addressKanji != null) {
$buf
..writeln()
..write(' address_kanji: ')
..write(addressKanji)
..write(',');
}
if (directorsProvided != null) {
$buf
..writeln()
..write(' directors_provided: ')
..write(directorsProvided)
..write(',');
}
if (executivesProvided != null) {
$buf
..writeln()
..write(' executives_provided: ')
..write(executivesProvided)
..write(',');
}
if (exportLicenseId != null) {
$buf
..writeln()
..write(' export_license_id: ')
..write(exportLicenseId)
..write(',');
}
if (exportPurposeCode != null) {
$buf
..writeln()
..write(' export_purpose_code: ')
..write(exportPurposeCode)
..write(',');
}
if (name != null) {
$buf
..writeln()
..write(' name: ')
..write(name)
..write(',');
}
if (nameKana != null) {
$buf
..writeln()
..write(' name_kana: ')
..write(nameKana)
..write(',');
}
if (nameKanji != null) {
$buf
..writeln()
..write(' name_kanji: ')
..write(nameKanji)
..write(',');
}
if (ownersProvided != null) {
$buf
..writeln()
..write(' owners_provided: ')
..write(ownersProvided)
..write(',');
}
if (ownershipDeclaration != null) {
$buf
..writeln()
..write(' ownership_declaration: ')
..write(ownershipDeclaration)
..write(',');
}
if (phone != null) {
$buf
..writeln()
..write(' phone: ')
..write(phone)
..write(',');
}
if (structure != null) {
$buf
..writeln()
..write(' structure: ')
..write(structure)
..write(',');
}
if (taxIdProvided != null) {
$buf
..writeln()
..write(' tax_id_provided: ')
..write(taxIdProvided)
..write(',');
}
if (taxIdRegistrar != null) {
$buf
..writeln()
..write(' tax_id_registrar: ')
..write(taxIdRegistrar)
..write(',');
}
if (vatIdProvided != null) {
$buf
..writeln()
..write(' vat_id_provided: ')
..write(vatIdProvided)
..write(',');
}
if (verification != null) {
$buf
..writeln()
..write(' verification: ')
..write(verification)
..write(',');
}
$buf.write(')');
return $buf.toString();
}