Staking constructor
Staking({
- Staking_Bond? bond,
- Staking_BondExtra? bondExtra,
- Staking_Unbond? unbond,
- Staking_WithdrawUnbonded? withdrawUnbonded,
- Staking_Nominate? nominate,
- Staking_Chill? chill,
- Staking_Rebond? rebond,
Implementation
factory Staking({
Staking_Bond? bond,
Staking_BondExtra? bondExtra,
Staking_Unbond? unbond,
Staking_WithdrawUnbonded? withdrawUnbonded,
Staking_Nominate? nominate,
Staking_Chill? chill,
Staking_Rebond? rebond,
}) {
final result = create();
if (bond != null) result.bond = bond;
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 (rebond != null) result.rebond = rebond;
return result;
}