BlockBalanceTrace.deserialize constructor

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

Implementation

factory BlockBalanceTrace.deserialize(List<int> bytes) {
  final decode = TronProtocolBufferImpl.decode(bytes);
  return BlockBalanceTrace(
    blockIdentifier: decode
        .getResult(1)
        ?.castTo<BlockBalanceTraceBlockIdentifier, List<int>>(
            (e) => BlockBalanceTraceBlockIdentifier.deserialize(e)),
    timestamp: decode.getField(2),
  );
}