GoogleCloudDialogflowCxV3DataStoreConnectionSignals.fromJson constructor
GoogleCloudDialogflowCxV3DataStoreConnectionSignals.fromJson(
- Map json_
Implementation
GoogleCloudDialogflowCxV3DataStoreConnectionSignals.fromJson(core.Map json_)
: this(
answer: json_.containsKey('answer')
? json_['answer'] as core.String
: null,
answerGenerationModelCallSignals: json_
.containsKey('answerGenerationModelCallSignals')
? GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerGenerationModelCallSignals
.fromJson(json_['answerGenerationModelCallSignals']
as core.Map<core.String, core.dynamic>)
: null,
answerParts: json_.containsKey('answerParts')
? (json_['answerParts'] as core.List)
.map((value) =>
GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerPart
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
citedSnippets: json_.containsKey('citedSnippets')
? (json_['citedSnippets'] as core.List)
.map((value) =>
GoogleCloudDialogflowCxV3DataStoreConnectionSignalsCitedSnippet
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
groundingSignals: json_.containsKey('groundingSignals')
? GoogleCloudDialogflowCxV3DataStoreConnectionSignalsGroundingSignals
.fromJson(json_['groundingSignals']
as core.Map<core.String, core.dynamic>)
: null,
rewriterModelCallSignals: json_
.containsKey('rewriterModelCallSignals')
? GoogleCloudDialogflowCxV3DataStoreConnectionSignalsRewriterModelCallSignals
.fromJson(json_['rewriterModelCallSignals']
as core.Map<core.String, core.dynamic>)
: null,
rewrittenQuery: json_.containsKey('rewrittenQuery')
? json_['rewrittenQuery'] as core.String
: null,
safetySignals: json_.containsKey('safetySignals')
? GoogleCloudDialogflowCxV3DataStoreConnectionSignalsSafetySignals
.fromJson(json_['safetySignals']
as core.Map<core.String, core.dynamic>)
: null,
searchSnippets: json_.containsKey('searchSnippets')
? (json_['searchSnippets'] as core.List)
.map((value) =>
GoogleCloudDialogflowCxV3DataStoreConnectionSignalsSearchSnippet
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);