ADABlockResponse.fromJson constructor

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

Implementation

factory ADABlockResponse.fromJson(Map<String, dynamic> json) {
  return ADABlockResponse(
    time: json['time'],
    height: json['height'],
    hash: json['hash'],
    slot: json['slot'],
    epoch: json['epoch'],
    epochSlot: json['epoch_slot'],
    slotLeader: json['slot_leader'],
    size: json['size'],
    txCount: json['tx_count'],
    output: json['output'],
    fees: json['fees'],
    blockVrf: json['block_vrf'],
    opCert: json['op_cert'],
    opCertCounter: json['op_cert_counter'],
    previousBlock: json['previous_block'],
    nextBlock: json['next_block'],
    confirmations: json['confirmations'],
  );
}