ListSuggestionsResponse constructor

ListSuggestionsResponse({
  1. Iterable<Suggestion>? suggestions,
  2. String? nextPageToken,
})

Implementation

factory ListSuggestionsResponse({
  $core.Iterable<Suggestion>? suggestions,
  $core.String? nextPageToken,
}) {
  final _result = create();
  if (suggestions != null) {
    _result.suggestions.addAll(suggestions);
  }
  if (nextPageToken != null) {
    _result.nextPageToken = nextPageToken;
  }
  return _result;
}