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('PaymentMethodDetailsInteracPresentReceipt(');
if (accountType != null) {
$buf
..writeln()
..write(' account_type: ')
..write(accountType)
..write(',');
}
if (applicationCryptogram != null) {
$buf
..writeln()
..write(' application_cryptogram: ')
..write(applicationCryptogram)
..write(',');
}
if (applicationPreferredName != null) {
$buf
..writeln()
..write(' application_preferred_name: ')
..write(applicationPreferredName)
..write(',');
}
if (authorizationCode != null) {
$buf
..writeln()
..write(' authorization_code: ')
..write(authorizationCode)
..write(',');
}
if (authorizationResponseCode != null) {
$buf
..writeln()
..write(' authorization_response_code: ')
..write(authorizationResponseCode)
..write(',');
}
if (cardholderVerificationMethod != null) {
$buf
..writeln()
..write(' cardholder_verification_method: ')
..write(cardholderVerificationMethod)
..write(',');
}
if (dedicatedFileName != null) {
$buf
..writeln()
..write(' dedicated_file_name: ')
..write(dedicatedFileName)
..write(',');
}
if (terminalVerificationResults != null) {
$buf
..writeln()
..write(' terminal_verification_results: ')
..write(terminalVerificationResults)
..write(',');
}
if (transactionStatusInformation != null) {
$buf
..writeln()
..write(' transaction_status_information: ')
..write(transactionStatusInformation)
..write(',');
}
$buf.write(')');
return $buf.toString();
}