StakePool.fromJson constructor

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

Implementation

factory StakePool.fromJson(final Map<String, dynamic> json) => StakePool(
  accountType: json['accountType'],
  manager: json['manager'],
  staker: json['staker'],
  stakeDepositAuthority: json['stakeDepositAuthority'],
  stakeWithdrawBumpSeed: json['stakeWithdrawBumpSeed'],
  validatorList: json['validatorList'],
  reserveStake: json['reserveStake'],
  poolMint: json['poolMint'],
  managerFeeAccount: json['managerFeeAccount'],
  tokenProgramId: json['tokenProgramId'],
  totalLamports: json['totalLamports'],
  poolTokenSupply: json['poolTokenSupply'],
  lastUpdateEpoch: json['lastUpdateEpoch'],
  lockup: Lockup.fromJson(json['lockup']),
  epochFee: Fee.fromJson(json['epochFee']),
  nextEpochFee: Fee.tryFromJson(json['nextEpochFee']),
  preferredDepositValidatorVoteAddress: json['preferredDepositValidatorVoteAddress'],
  preferredWithdrawValidatorVoteAddress: json['preferredWithdrawValidatorVoteAddress'],
  stakeDepositFee: Fee.fromJson(json['stakeDepositFee']),
  stakeWithdrawalFee: Fee.fromJson(json['stakeWithdrawalFee']),
  nextStakeWithdrawalFee: Fee.tryFromJson(json['nextStakeWithdrawalFee']),
  stakeReferralFee: json['stakeReferralFee'],
  solDepositAuthority: json['solDepositAuthority'],
  solDepositFee: Fee.fromJson(json['solDepositFee']),
  solReferralFee: json['solReferralFee'],
  solWithdrawAuthority: json['solWithdrawAuthority'],
  solWithdrawalFee: Fee.fromJson(json['solWithdrawalFee']),
  nextSolWithdrawalFee: Fee.tryFromJson(json['nextSolWithdrawalFee']),
  lastEpochPoolTokenSupply: json['lastEpochPoolTokenSupply'],
  lastEpochTotalLamports: json['lastEpochTotalLamports'],
);