TestCase constructor

TestCase({
  1. String? name,
  2. Iterable<String>? tags,
  3. String? displayName,
  4. String? notes,
  5. Iterable<ConversationTurn>? testCaseConversationTurns,
  6. Timestamp? creationTime,
  7. TestCaseResult? lastTestResult,
  8. TestConfig? testConfig,
})

Implementation

factory TestCase({
  $core.String? name,
  $core.Iterable<$core.String>? tags,
  $core.String? displayName,
  $core.String? notes,
  $core.Iterable<ConversationTurn>? testCaseConversationTurns,
  $21.Timestamp? creationTime,
  TestCaseResult? lastTestResult,
  TestConfig? testConfig,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (tags != null) {
    _result.tags.addAll(tags);
  }
  if (displayName != null) {
    _result.displayName = displayName;
  }
  if (notes != null) {
    _result.notes = notes;
  }
  if (testCaseConversationTurns != null) {
    _result.testCaseConversationTurns.addAll(testCaseConversationTurns);
  }
  if (creationTime != null) {
    _result.creationTime = creationTime;
  }
  if (lastTestResult != null) {
    _result.lastTestResult = lastTestResult;
  }
  if (testConfig != null) {
    _result.testConfig = testConfig;
  }
  return _result;
}