Metrics.fromJson constructor

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

Implementation

factory Metrics.fromJson(Map<String, dynamic> json) {
  return Metrics(
      transactionsPerBatch: json['transactionsPerBatch'],
      batchFrequency: json['batchFrequency'],
      transactionsPerSecond: json['transactionsPerSecond'],
      tokenAccounts: json['tokenAccounts'],
      wallets: json['wallets'],
      avgTransactionFee: json['avgTransactionFee'],
      estimatedTimeToForgeL1: json['estimatedTimeToForgeL1']);
}