toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _data = <String, dynamic>{};
  _data['epoch'] = epoch;
  _data['protocolVersion'] = protocolVersion;
  _data['systemStateVersion'] = systemStateVersion;
  _data['storageFundTotalObjectStorageRebates'] =
      storageFundTotalObjectStorageRebates;
  _data['storageFundNonRefundableBalance'] = storageFundNonRefundableBalance;
  _data['referenceGasPrice'] = referenceGasPrice;
  _data['safeMode'] = safeMode;
  _data['safeModeStorageRewards'] = safeModeStorageRewards;
  _data['safeModeComputationRewards'] = safeModeComputationRewards;
  _data['safeModeStorageRebates'] = safeModeStorageRebates;
  _data['safeModeNonRefundableStorageFee'] = safeModeNonRefundableStorageFee;
  _data['epochStartTimestampMs'] = epochStartTimestampMs;
  _data['epochDurationMs'] = epochDurationMs;
  _data['stakeSubsidyStartEpoch'] = stakeSubsidyStartEpoch;
  _data['maxValidatorCount'] = maxValidatorCount;
  _data['minValidatorJoiningStake'] = minValidatorJoiningStake;
  _data['validatorLowStakeThreshold'] = validatorLowStakeThreshold;
  _data['validatorVeryLowStakeThreshold'] = validatorVeryLowStakeThreshold;
  _data['validatorLowStakeGracePeriod'] = validatorLowStakeGracePeriod;
  _data['stakeSubsidyBalance'] = stakeSubsidyBalance;
  _data['stakeSubsidyDistributionCounter'] = stakeSubsidyDistributionCounter;
  _data['stakeSubsidyCurrentDistributionAmount'] =
      stakeSubsidyCurrentDistributionAmount;
  _data['stakeSubsidyPeriodLength'] = stakeSubsidyPeriodLength;
  _data['stakeSubsidyDecreaseRate'] = stakeSubsidyDecreaseRate;
  _data['totalStake'] = totalStake;
  _data['pendingActiveValidatorsId'] = pendingActiveValidatorsId;
  _data['pendingActiveValidatorsSize'] = pendingActiveValidatorsSize;
  _data['pendingRemovals'] = pendingRemovals;
  _data['stakingPoolMappingsId'] = stakingPoolMappingsId;
  _data['stakingPoolMappingsSize'] = stakingPoolMappingsSize;
  _data['inactivePoolsId'] = inactivePoolsId;
  _data['inactivePoolsSize'] = inactivePoolsSize;
  _data['validatorCandidatesId'] = validatorCandidatesId;
  _data['validatorCandidatesSize'] = validatorCandidatesSize;
  _data['atRiskValidators'] = atRiskValidators;
  _data['validatorReportRecords'] = validatorReportRecords;
  _data['activeValidators'] =
      activeValidators.map((e) => e.toJson()).toList();
  return _data;
}