Suggestion constructor

Suggestion({
  1. String? name,
  2. Iterable<Suggestion_Article>? articles,
  3. Iterable<Suggestion_FaqAnswer>? faqAnswers,
  4. Timestamp? createTime,
  5. String? latestMessage,
})

Implementation

factory Suggestion({
  $core.String? name,
  $core.Iterable<Suggestion_Article>? articles,
  $core.Iterable<Suggestion_FaqAnswer>? faqAnswers,
  $17.Timestamp? createTime,
  $core.String? latestMessage,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (articles != null) {
    _result.articles.addAll(articles);
  }
  if (faqAnswers != null) {
    _result.faqAnswers.addAll(faqAnswers);
  }
  if (createTime != null) {
    _result.createTime = createTime;
  }
  if (latestMessage != null) {
    _result.latestMessage = latestMessage;
  }
  return _result;
}