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,
- Staking_Rebond? rebond,
- Staking_BondExtraAndNominate? bondExtraAndNominate,
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,
Staking_Rebond? rebond,
Staking_BondExtraAndNominate? bondExtraAndNominate,
}) {
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;
if (rebond != null) result.rebond = rebond;
if (bondExtraAndNominate != null)
result.bondExtraAndNominate = bondExtraAndNominate;
return result;
}