Deposit constructor

Deposit({
  1. Int64? proposalId,
  2. String? depositor,
  3. Iterable<Coin>? amount,
})

Implementation

factory Deposit({
  $fixnum.Int64? proposalId,
  $core.String? depositor,
  $core.Iterable<$2.Coin>? amount,
}) {
  final _result = create();
  if (proposalId != null) {
    _result.proposalId = proposalId;
  }
  if (depositor != null) {
    _result.depositor = depositor;
  }
  if (amount != null) {
    _result.amount.addAll(amount);
  }
  return _result;
}