BaseVestingAccount constructor

BaseVestingAccount({
  1. BaseAccount? baseAccount,
  2. Iterable<Coin>? originalVesting,
  3. Iterable<Coin>? delegatedFree,
  4. Iterable<Coin>? delegatedVesting,
  5. Int64? endTime,
})

Implementation

factory BaseVestingAccount({
  $1.BaseAccount? baseAccount,
  $core.Iterable<$2.Coin>? originalVesting,
  $core.Iterable<$2.Coin>? delegatedFree,
  $core.Iterable<$2.Coin>? delegatedVesting,
  $fixnum.Int64? endTime,
}) {
  final _result = create();
  if (baseAccount != null) {
    _result.baseAccount = baseAccount;
  }
  if (originalVesting != null) {
    _result.originalVesting.addAll(originalVesting);
  }
  if (delegatedFree != null) {
    _result.delegatedFree.addAll(delegatedFree);
  }
  if (delegatedVesting != null) {
    _result.delegatedVesting.addAll(delegatedVesting);
  }
  if (endTime != null) {
    _result.endTime = endTime;
  }
  return _result;
}