Staking constructor

Staking({
  1. Staking_Bond? bond,
  2. Staking_BondExtra? bondExtra,
  3. Staking_Unbond? unbond,
  4. Staking_WithdrawUnbonded? withdrawUnbonded,
  5. Staking_Nominate? nominate,
  6. Staking_Chill? chill,
  7. 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;
}