Staking constructor
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,
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;
}