GoogleCloudDialogflowV2AutomatedAgentReply.fromJson constructor
GoogleCloudDialogflowV2AutomatedAgentReply.fromJson(
- Map json_
Implementation
GoogleCloudDialogflowV2AutomatedAgentReply.fromJson(core.Map json_)
: this(
allowCancellation: json_['allowCancellation'] as core.bool?,
automatedAgentReplyType:
json_['automatedAgentReplyType'] as core.String?,
callCompanionAuthCode: json_['callCompanionAuthCode'] as core.String?,
cxCurrentPage: json_['cxCurrentPage'] as core.String?,
detectIntentResponse: json_.containsKey('detectIntentResponse')
? GoogleCloudDialogflowV2DetectIntentResponse.fromJson(
json_['detectIntentResponse']
as core.Map<core.String, core.dynamic>,
)
: null,
event: json_['event'] as core.String?,
intent: json_['intent'] as core.String?,
matchConfidence: (json_['matchConfidence'] as core.num?)?.toDouble(),
parameters: json_.containsKey('parameters')
? json_['parameters'] as core.Map<core.String, core.dynamic>
: null,
responseMessages: (json_['responseMessages'] as core.List?)
?.map(
(value) => GoogleCloudDialogflowV2ResponseMessage.fromJson(
value as core.Map<core.String, core.dynamic>,
),
)
.toList(),
);