ArticleAnswer constructor

ArticleAnswer({
  1. String? title,
  2. String? uri,
  3. Iterable<String>? snippets,
  4. double? confidence,
  5. Map<String, String>? metadata,
  6. String? answerRecord,
})

Implementation

factory ArticleAnswer({
  $core.String? title,
  $core.String? uri,
  $core.Iterable<$core.String>? snippets,
  $core.double? confidence,
  $core.Map<$core.String, $core.String>? metadata,
  $core.String? answerRecord,
}) {
  final _result = create();
  if (title != null) {
    _result.title = title;
  }
  if (uri != null) {
    _result.uri = uri;
  }
  if (snippets != null) {
    _result.snippets.addAll(snippets);
  }
  if (confidence != null) {
    _result.confidence = confidence;
  }
  if (metadata != null) {
    _result.metadata.addAll(metadata);
  }
  if (answerRecord != null) {
    _result.answerRecord = answerRecord;
  }
  return _result;
}