GoogleCloudDialogflowCxV3QueryResult.fromJson constructor
GoogleCloudDialogflowCxV3QueryResult.fromJson(
- Map json_
Implementation
GoogleCloudDialogflowCxV3QueryResult.fromJson(core.Map json_)
: this(
advancedSettings: json_.containsKey('advancedSettings')
? GoogleCloudDialogflowCxV3AdvancedSettings.fromJson(
json_['advancedSettings']
as core.Map<core.String, core.dynamic>)
: null,
allowAnswerFeedback: json_.containsKey('allowAnswerFeedback')
? json_['allowAnswerFeedback'] as core.bool
: null,
currentPage: json_.containsKey('currentPage')
? GoogleCloudDialogflowCxV3Page.fromJson(
json_['currentPage'] as core.Map<core.String, core.dynamic>)
: null,
dataStoreConnectionSignals: json_
.containsKey('dataStoreConnectionSignals')
? GoogleCloudDialogflowCxV3DataStoreConnectionSignals.fromJson(
json_['dataStoreConnectionSignals']
as core.Map<core.String, core.dynamic>)
: null,
diagnosticInfo: json_.containsKey('diagnosticInfo')
? json_['diagnosticInfo'] as core.Map<core.String, core.dynamic>
: null,
dtmf: json_.containsKey('dtmf')
? GoogleCloudDialogflowCxV3DtmfInput.fromJson(
json_['dtmf'] as core.Map<core.String, core.dynamic>)
: null,
intent: json_.containsKey('intent')
? GoogleCloudDialogflowCxV3Intent.fromJson(
json_['intent'] as core.Map<core.String, core.dynamic>)
: null,
intentDetectionConfidence:
json_.containsKey('intentDetectionConfidence')
? (json_['intentDetectionConfidence'] as core.num).toDouble()
: null,
languageCode: json_.containsKey('languageCode')
? json_['languageCode'] as core.String
: null,
match: json_.containsKey('match')
? GoogleCloudDialogflowCxV3Match.fromJson(
json_['match'] as core.Map<core.String, core.dynamic>)
: null,
parameters: json_.containsKey('parameters')
? json_['parameters'] as core.Map<core.String, core.dynamic>
: null,
responseMessages: json_.containsKey('responseMessages')
? (json_['responseMessages'] as core.List)
.map((value) =>
GoogleCloudDialogflowCxV3ResponseMessage.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
sentimentAnalysisResult: json_.containsKey('sentimentAnalysisResult')
? GoogleCloudDialogflowCxV3SentimentAnalysisResult.fromJson(
json_['sentimentAnalysisResult']
as core.Map<core.String, core.dynamic>)
: null,
text: json_.containsKey('text') ? json_['text'] as core.String : null,
transcript: json_.containsKey('transcript')
? json_['transcript'] as core.String
: null,
triggerEvent: json_.containsKey('triggerEvent')
? json_['triggerEvent'] as core.String
: null,
triggerIntent: json_.containsKey('triggerIntent')
? json_['triggerIntent'] as core.String
: null,
webhookPayloads: json_.containsKey('webhookPayloads')
? (json_['webhookPayloads'] as core.List)
.map((value) => value as core.Map<core.String, core.dynamic>)
.toList()
: null,
webhookStatuses: json_.containsKey('webhookStatuses')
? (json_['webhookStatuses'] as core.List)
.map((value) => GoogleRpcStatus.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);