MsgCreateVestingAccount constructor

MsgCreateVestingAccount({
  1. String? fromAddress,
  2. String? toAddress,
  3. Iterable<Coin>? amount,
  4. Int64? endTime,
  5. bool? delayed,
})

Implementation

factory MsgCreateVestingAccount({
  $core.String? fromAddress,
  $core.String? toAddress,
  $core.Iterable<$2.Coin>? amount,
  $fixnum.Int64? endTime,
  $core.bool? delayed,
}) {
  final _result = create();
  if (fromAddress != null) {
    _result.fromAddress = fromAddress;
  }
  if (toAddress != null) {
    _result.toAddress = toAddress;
  }
  if (amount != null) {
    _result.amount.addAll(amount);
  }
  if (endTime != null) {
    _result.endTime = endTime;
  }
  if (delayed != null) {
    _result.delayed = delayed;
  }
  return _result;
}