BlockBalanceTrace.fromJson constructor
Create a new BlockBalanceTrace instance by parsing a JSON map.
Implementation
factory BlockBalanceTrace.fromJson(Map<String, dynamic> json) {
return BlockBalanceTrace(
blockIdentifier: json['block_identifier'] == null
? null
: BlockBalanceTraceBlockIdentifier.fromJson(json['block_identifier']),
timestamp:
json['timestamp'] == null ? null : BigInt.parse(json['timestamp']),
transactionBalanceTrace: json['transaction_balance_trace'] == null
? null
: (json['transaction_balance_trace'] as List<dynamic>)
.map((trace) => TransactionBalanceTrace.fromJson(trace))
.toList(),
);
}