Batch.fromJson constructor

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

Implementation

factory Batch.fromJson(Map<String, dynamic> json) {
  return Batch(
    itemId: json['itemId'],
    batchNum: json['batchNum'],
    ethereumBlockNum: json['ethereumBlockNum'],
    ethereumBlockHash: json['ethereumBlockHash'],
    timestamp: json['timestamp'],
    forgerAddr: json['forgerAddr'],
    collectedFees: json['collectedFees'],
    historicTotalCollectedFeesUSD:
        json['historicTotalCollectedFeesUSD'].toDouble(),
    stateRoot: json['stateRoot'],
    numAccounts: json['numAccounts'],
    exitRoot: json['exitRoot'],
    forgeL1TransactionsNum: json['forgeL1TransactionsNum'],
    slotNum: json['slotNum'],
    forgedTransactions: json['forgedTransactions'],
  );
}