Staking constructor
Staking({
- Staking_Create? stakeCreate,
- Staking_Reclaim? stakeUnstake,
- Staking_Reclaim? stakeWithdraw,
- Staking_AddDeposit? stakeAddDeposit,
- Staking_Restake? stakeRestake,
- Staking_ChangeCandidate? stakeChangeCandidate,
- Staking_TransferOwnership? stakeTransferOwnership,
- Staking_CandidateRegister? candidateRegister,
- Staking_CandidateBasicInfo? candidateUpdate,
Implementation
factory Staking({
Staking_Create? stakeCreate,
Staking_Reclaim? stakeUnstake,
Staking_Reclaim? stakeWithdraw,
Staking_AddDeposit? stakeAddDeposit,
Staking_Restake? stakeRestake,
Staking_ChangeCandidate? stakeChangeCandidate,
Staking_TransferOwnership? stakeTransferOwnership,
Staking_CandidateRegister? candidateRegister,
Staking_CandidateBasicInfo? candidateUpdate,
}) {
final _result = create();
if (stakeCreate != null) {
_result.stakeCreate = stakeCreate;
}
if (stakeUnstake != null) {
_result.stakeUnstake = stakeUnstake;
}
if (stakeWithdraw != null) {
_result.stakeWithdraw = stakeWithdraw;
}
if (stakeAddDeposit != null) {
_result.stakeAddDeposit = stakeAddDeposit;
}
if (stakeRestake != null) {
_result.stakeRestake = stakeRestake;
}
if (stakeChangeCandidate != null) {
_result.stakeChangeCandidate = stakeChangeCandidate;
}
if (stakeTransferOwnership != null) {
_result.stakeTransferOwnership = stakeTransferOwnership;
}
if (candidateRegister != null) {
_result.candidateRegister = candidateRegister;
}
if (candidateUpdate != null) {
_result.candidateUpdate = candidateUpdate;
}
return _result;
}