Bank constructor

Bank({
  1. List<int>? id,
  2. List<int>? owner,
  3. String? shortName,
  4. String? displayName,
  5. Iterable<BankAccountRef>? accounts,
})

Implementation

factory Bank({
  $core.List<$core.int>? id,
  $core.List<$core.int>? owner,
  $core.String? shortName,
  $core.String? displayName,
  $core.Iterable<BankAccountRef>? accounts,
}) {
  final _result = create();
  if (id != null) {
    _result.id = id;
  }
  if (owner != null) {
    _result.owner = owner;
  }
  if (shortName != null) {
    _result.shortName = shortName;
  }
  if (displayName != null) {
    _result.displayName = displayName;
  }
  if (accounts != null) {
    _result.accounts.addAll(accounts);
  }
  return _result;
}