toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts the object to a JSON representation.

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    "minfee_a": minfeeA?.toString(),
    "minfee_b": minFeeB?.toString(),
    "max_block_body_size": maxBlockBodySize,
    "max_tx_size": maxTxSize,
    "max_block_header_size": maxBlockHeaderSize,
    "key_deposit": keyDeposit?.toString(),
    "pool_deposit": poolDeposit?.toString(),
    "max_epoch": maxEpoch,
    "n_opt": nOpt,
    "pool_pledge_influence": poolPledgeInfluence?.toJson(),
    "expansion_rate": expansionRate?.toJson(),
    "treasury_growth_rate": treasuryGrowthRate?.toJson(),
    "d": d?.toJson(),
    "extra_entropy": extraEntropy?.toJson(),
    "protocol_version": protocolVersion?.toJson(),
    "min_pool_cost": minPoolCost?.toString(),
    "ada_per_utxo_byte": adaPerUtxoByte?.toString(),
    "cost_models": costModel?.toJson(),
    "execution_costs": executionCosts?.toJson(),
    "max_tx_ex_units": maxTxExUnits?.toJson(),
    "max_block_ex_units": maxBlockExUnits?.toJson(),
    "max_value_size": maxValueSize,
    "collateral_percentage": collateralPercentage,
    "max_collateral_inputs": maxCollateralInputs
  };
}