ADATransactionInfoResponse.fromJson constructor

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

Implementation

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