GoogleCloudDialogflowCxV3ResponseMessage.fromJson constructor
GoogleCloudDialogflowCxV3ResponseMessage.fromJson(
- Map json_
Implementation
GoogleCloudDialogflowCxV3ResponseMessage.fromJson(core.Map json_)
: this(
channel: json_['channel'] as core.String?,
conversationSuccess: json_.containsKey('conversationSuccess')
? GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess.fromJson(
json_['conversationSuccess']
as core.Map<core.String, core.dynamic>,
)
: null,
endInteraction: json_.containsKey('endInteraction')
? GoogleCloudDialogflowCxV3ResponseMessageEndInteraction.fromJson(
json_['endInteraction'] as core.Map<core.String, core.dynamic>,
)
: null,
knowledgeInfoCard: json_.containsKey('knowledgeInfoCard')
? GoogleCloudDialogflowCxV3ResponseMessageKnowledgeInfoCard.fromJson(
json_['knowledgeInfoCard']
as core.Map<core.String, core.dynamic>,
)
: null,
liveAgentHandoff: json_.containsKey('liveAgentHandoff')
? GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff.fromJson(
json_['liveAgentHandoff']
as core.Map<core.String, core.dynamic>,
)
: null,
mixedAudio: json_.containsKey('mixedAudio')
? GoogleCloudDialogflowCxV3ResponseMessageMixedAudio.fromJson(
json_['mixedAudio'] as core.Map<core.String, core.dynamic>,
)
: null,
outputAudioText: json_.containsKey('outputAudioText')
? GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText.fromJson(
json_['outputAudioText'] as core.Map<core.String, core.dynamic>,
)
: null,
payload: json_.containsKey('payload')
? json_['payload'] as core.Map<core.String, core.dynamic>
: null,
playAudio: json_.containsKey('playAudio')
? GoogleCloudDialogflowCxV3ResponseMessagePlayAudio.fromJson(
json_['playAudio'] as core.Map<core.String, core.dynamic>,
)
: null,
responseType: json_['responseType'] as core.String?,
telephonyTransferCall: json_.containsKey('telephonyTransferCall')
? GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall.fromJson(
json_['telephonyTransferCall']
as core.Map<core.String, core.dynamic>,
)
: null,
text: json_.containsKey('text')
? GoogleCloudDialogflowCxV3ResponseMessageText.fromJson(
json_['text'] as core.Map<core.String, core.dynamic>,
)
: null,
toolCall: json_.containsKey('toolCall')
? GoogleCloudDialogflowCxV3ToolCall.fromJson(
json_['toolCall'] as core.Map<core.String, core.dynamic>,
)
: null,
);