SuggestionResult constructor

SuggestionResult({
  1. Status? error,
  2. SuggestArticlesResponse? suggestArticlesResponse,
  3. SuggestFaqAnswersResponse? suggestFaqAnswersResponse,
})

Implementation

factory SuggestionResult({
  $20.Status? error,
  SuggestArticlesResponse? suggestArticlesResponse,
  SuggestFaqAnswersResponse? suggestFaqAnswersResponse,
}) {
  final _result = create();
  if (error != null) {
    _result.error = error;
  }
  if (suggestArticlesResponse != null) {
    _result.suggestArticlesResponse = suggestArticlesResponse;
  }
  if (suggestFaqAnswersResponse != null) {
    _result.suggestFaqAnswersResponse = suggestFaqAnswersResponse;
  }
  return _result;
}