DelegateStake constructor

DelegateStake({
  1. String? validatorPubkey,
  2. Int64? value,
  3. String? stakeAccount,
})

Implementation

factory DelegateStake({
  $core.String? validatorPubkey,
  $fixnum.Int64? value,
  $core.String? stakeAccount,
}) {
  final _result = create();
  if (validatorPubkey != null) {
    _result.validatorPubkey = validatorPubkey;
  }
  if (value != null) {
    _result.value = value;
  }
  if (stakeAccount != null) {
    _result.stakeAccount = stakeAccount;
  }
  return _result;
}