MsgDelegate constructor

MsgDelegate({
  1. String? delegatorAddress,
  2. String? validatorAddress,
  3. Coin? amount,
})

Implementation

factory MsgDelegate({
  $core.String? delegatorAddress,
  $core.String? validatorAddress,
  $6.Coin? amount,
}) {
  final _result = create();
  if (delegatorAddress != null) {
    _result.delegatorAddress = delegatorAddress;
  }
  if (validatorAddress != null) {
    _result.validatorAddress = validatorAddress;
  }
  if (amount != null) {
    _result.amount = amount;
  }
  return _result;
}