toJson method
Convert the BlockBalanceTrace object to a JSON representation.
Implementation
@override
Map<String, dynamic> toJson() {
return {
"block_identifier": blockIdentifier?.toJson(),
"timestamp": timestamp?.toString(),
"transaction_balance_trace":
transactionBalanceTrace?.map((trace) => trace.toJson()).toList(),
}..removeWhere((key, value) => value == null);
}