GoogleCloudDialogflowCxV3ResponseMessage.fromJson constructor

GoogleCloudDialogflowCxV3ResponseMessage.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowCxV3ResponseMessage.fromJson(core.Map json_)
    : this(
        channel: json_.containsKey('channel')
            ? json_['channel'] as core.String
            : null,
        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_.containsKey('responseType')
            ? json_['responseType'] as core.String
            : null,
        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,
      );