SuiSystemStateSummary.fromJson constructor
SuiSystemStateSummary.fromJson(
- Map<String, dynamic> json
)
Implementation
SuiSystemStateSummary.fromJson(Map<String, dynamic> json) {
activeValidators = [];
for (var value in json['activeValidators']) {
activeValidators.add(SuiValidatorSummary.fromJson(value));
}
epoch = json['epoch'];
protocolVersion = json['protocolVersion'];
systemStateVersion = json['systemStateVersion'];
storageFundTotalObjectStorageRebates =
json['storageFundTotalObjectStorageRebates'];
storageFundNonRefundableBalance = json['storageFundNonRefundableBalance'];
referenceGasPrice = json['referenceGasPrice'];
safeMode = json['safeMode'];
safeModeStorageRewards = json['safeModeStorageRewards'];
safeModeComputationRewards = json['safeModeComputationRewards'];
safeModeStorageRebates = json['safeModeStorageRebates'];
safeModeNonRefundableStorageFee = json['safeModeNonRefundableStorageFee'];
epochStartTimestampMs = json['epochStartTimestampMs'];
epochDurationMs = json['epochDurationMs'];
stakeSubsidyStartEpoch = json['stakeSubsidyStartEpoch'];
maxValidatorCount = json['maxValidatorCount'];
minValidatorJoiningStake = json['minValidatorJoiningStake'];
validatorLowStakeThreshold = json['validatorLowStakeThreshold'];
validatorVeryLowStakeThreshold = json['validatorVeryLowStakeThreshold'];
validatorLowStakeGracePeriod = json['validatorLowStakeGracePeriod'];
stakeSubsidyBalance = json['stakeSubsidyBalance'];
stakeSubsidyDistributionCounter = json['stakeSubsidyDistributionCounter'];
stakeSubsidyCurrentDistributionAmount =
json['stakeSubsidyCurrentDistributionAmount'];
stakeSubsidyPeriodLength = json['stakeSubsidyPeriodLength'];
stakeSubsidyDecreaseRate = json['stakeSubsidyDecreaseRate'];
totalStake = json['totalStake'];
pendingActiveValidatorsId = json['pendingActiveValidatorsId'];
pendingActiveValidatorsSize = json['pendingActiveValidatorsSize'];
pendingRemovals = List.castFrom<dynamic, dynamic>(json['pendingRemovals']);
stakingPoolMappingsId = json['stakingPoolMappingsId'];
stakingPoolMappingsSize = json['stakingPoolMappingsSize'];
inactivePoolsId = json['inactivePoolsId'];
inactivePoolsSize = json['inactivePoolsSize'];
validatorCandidatesId = json['validatorCandidatesId'];
validatorCandidatesSize = json['validatorCandidatesSize'];
atRiskValidators =
List.castFrom<dynamic, dynamic>(json['atRiskValidators']);
validatorReportRecords =
List.castFrom<dynamic, dynamic>(json['validatorReportRecords']);
}