toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'hash': hash,
    'block': block,
    'block_height': blockHeight,
    'block_time': blockTime,
    'slot': slot,
    'index': index,
    'output_amount': outputAmount.map((e) => e.toJson()),
    'fees': fees,
    'deposit': deposit,
    'size': size,
    'invalid_before': invalidBefore,
    'invalid_hereafter': invalidHereafter,
    'utxo_count': utxoCount,
    'withdrawal_count': withdrawalCount,
    'mir_cert_count': mirCertCount,
    'delegation_count': delegationCount,
    'stake_cert_count': stakeCertCount,
    'pool_update_count': poolUpdateCount,
    'pool_retire_count': poolRetireCount,
    'asset_mint_or_burn_count': assetMintOrBurnCount,
    'redeemer_count': redeemerCount,
    'valid_contract': validContract,
  };
}