Staking constructor

Staking({
  1. Staking_Bond? bond,
  2. Staking_BondAndNominate? bondAndNominate,
  3. Staking_BondExtra? bondExtra,
  4. Staking_Unbond? unbond,
  5. Staking_WithdrawUnbonded? withdrawUnbonded,
  6. Staking_Nominate? nominate,
  7. Staking_Chill? chill,
  8. Staking_ChillAndUnbond? chillAndUnbond,
})

Implementation

factory Staking({
  Staking_Bond? bond,
  Staking_BondAndNominate? bondAndNominate,
  Staking_BondExtra? bondExtra,
  Staking_Unbond? unbond,
  Staking_WithdrawUnbonded? withdrawUnbonded,
  Staking_Nominate? nominate,
  Staking_Chill? chill,
  Staking_ChillAndUnbond? chillAndUnbond,
}) {
  final _result = create();
  if (bond != null) {
    _result.bond = bond;
  }
  if (bondAndNominate != null) {
    _result.bondAndNominate = bondAndNominate;
  }
  if (bondExtra != null) {
    _result.bondExtra = bondExtra;
  }
  if (unbond != null) {
    _result.unbond = unbond;
  }
  if (withdrawUnbonded != null) {
    _result.withdrawUnbonded = withdrawUnbonded;
  }
  if (nominate != null) {
    _result.nominate = nominate;
  }
  if (chill != null) {
    _result.chill = chill;
  }
  if (chillAndUnbond != null) {
    _result.chillAndUnbond = chillAndUnbond;
  }
  return _result;
}