FaqAnswer constructor

FaqAnswer({
  1. String? answer,
  2. double? confidence,
  3. String? question,
  4. String? source,
  5. Map<String, String>? metadata,
  6. String? answerRecord,
})

Implementation

factory FaqAnswer({
  $core.String? answer,
  $core.double? confidence,
  $core.String? question,
  $core.String? source,
  $core.Map<$core.String, $core.String>? metadata,
  $core.String? answerRecord,
}) {
  final _result = create();
  if (answer != null) {
    _result.answer = answer;
  }
  if (confidence != null) {
    _result.confidence = confidence;
  }
  if (question != null) {
    _result.question = question;
  }
  if (source != null) {
    _result.source = source;
  }
  if (metadata != null) {
    _result.metadata.addAll(metadata);
  }
  if (answerRecord != null) {
    _result.answerRecord = answerRecord;
  }
  return _result;
}