toJson method
Convert the TransactionBalanceTrace object to a JSON representation.
Implementation
@override
Map<String, dynamic> toJson() {
return {
"transaction_identifier":
BytesUtils.tryToHexString(transactionIdentifier),
"operation": operation?.map((op) => op.toJson()).toList(),
"type": type,
"status": status,
}..removeWhere((key, value) => value == null);
}