toJson method
JSON form sent over the transport. The map preserves insertion order so the on-wire shape is deterministic for tests / signing.
Implementation
Map<String, dynamic> toJson() {
final out = <String, dynamic>{};
out['encryptedPayload'] = encryptedPayload;
out['ksn'] = ksn;
out['entryMode'] = entryMode;
out['amountMinorUnits'] = amountMinorUnits;
out['currency'] = currency;
out['idempotencyKey'] = idempotencyKey;
if (reader != null) out['reader'] = reader;
if (transactionMetadata != null) {
out['transactionMetadata'] = transactionMetadata;
}
return out;
}