EpochInfo.fromJson constructor

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

Implementation

factory EpochInfo.fromJson(Map<String, dynamic> json) {
  return EpochInfo(
      epoch: json['epoch'],
      slotIndex: json['slotIndex'],
      slotsInEpoch: json['slotsInEpoch'],
      absoluteSlot: json['absoluteSlot'],
      blockHeight: json['blockHeight'],
      transactionCount: json['transactionCount']);
}