ADAMempoolTransactionResponse.fromJson constructor

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

Implementation

factory ADAMempoolTransactionResponse.fromJson(Map<String, dynamic> json) {
  return ADAMempoolTransactionResponse(
    hash: json['hash'],
    outputAmount: List<Map<String, dynamic>>.from(json['output_amount']),
    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'],
    inputs:
        List<ADAInput>.from(json['inputs'].map((x) => ADAInput.fromJson(x))),
    outputs: List<ADAOutput>.from(
        json['outputs'].map((x) => ADAOutput.fromJson(x))),
    redeemers: json['redeemers'] != null
        ? List<ADARedeemer>.from(
            json['redeemers'].map((x) => ADARedeemer.fromJson(x)))
        : null,
  );
}