TransactionBalanceTrace.fromJson constructor

TransactionBalanceTrace.fromJson(
  1. Map<String, dynamic> json
)

Create a new TransactionBalanceTrace instance by parsing a JSON map.

Implementation

factory TransactionBalanceTrace.fromJson(Map<String, dynamic> json) {
  return TransactionBalanceTrace(
    transactionIdentifier:
        BytesUtils.tryFromHexString(json["transaction_identifier"]),
    operation: (json["operation"] as List<dynamic>?)
        ?.map((op) => TransactionBalanceTraceOperation.fromJson(op))
        .toList(),
    type: json["type"],
    status: json["status"],
  );
}