QueryGrantsResponse constructor

QueryGrantsResponse({
  1. Iterable<Grant>? grants,
  2. PageResponse? pagination,
})

Implementation

factory QueryGrantsResponse({
  $core.Iterable<$5.Grant>? grants,
  $6.PageResponse? pagination,
}) {
  final _result = create();
  if (grants != null) {
    _result.grants.addAll(grants);
  }
  if (pagination != null) {
    _result.pagination = pagination;
  }
  return _result;
}