TransactionBalanceTrace.deserialize constructor

TransactionBalanceTrace.deserialize(
  1. List<int> bytes
)

Implementation

factory TransactionBalanceTrace.deserialize(List<int> bytes) {
  final decode = TronProtocolBufferImpl.decode(bytes);
  return TransactionBalanceTrace(
      transactionIdentifier: decode.getField(1),
      operation: decode
          .getFields(2)
          .map((e) => TransactionBalanceTraceOperation.deserialize(e))
          .toList(),
      type: decode.getField(3),
      status: decode.getField(4));
}