GoogleCloudDialogflowCxV3TestCase.fromJson constructor
GoogleCloudDialogflowCxV3TestCase.fromJson(
- Map json_
Implementation
GoogleCloudDialogflowCxV3TestCase.fromJson(core.Map json_)
: this(
creationTime: json_.containsKey('creationTime')
? json_['creationTime'] as core.String
: null,
displayName: json_.containsKey('displayName')
? json_['displayName'] as core.String
: null,
lastTestResult: json_.containsKey('lastTestResult')
? GoogleCloudDialogflowCxV3TestCaseResult.fromJson(
json_['lastTestResult']
as core.Map<core.String, core.dynamic>)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
notes:
json_.containsKey('notes') ? json_['notes'] as core.String : null,
tags: json_.containsKey('tags')
? (json_['tags'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
testCaseConversationTurns:
json_.containsKey('testCaseConversationTurns')
? (json_['testCaseConversationTurns'] as core.List)
.map((value) =>
GoogleCloudDialogflowCxV3ConversationTurn.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
testConfig: json_.containsKey('testConfig')
? GoogleCloudDialogflowCxV3TestConfig.fromJson(
json_['testConfig'] as core.Map<core.String, core.dynamic>)
: null,
);