GoogleCloudDialogflowV2AnalyzeContentResponse.fromJson constructor

GoogleCloudDialogflowV2AnalyzeContentResponse.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowV2AnalyzeContentResponse.fromJson(core.Map json_)
    : this(
        automatedAgentReply: json_.containsKey('automatedAgentReply')
            ? GoogleCloudDialogflowV2AutomatedAgentReply.fromJson(
                json_['automatedAgentReply']
                    as core.Map<core.String, core.dynamic>)
            : null,
        dtmfParameters: json_.containsKey('dtmfParameters')
            ? GoogleCloudDialogflowV2DtmfParameters.fromJson(
                json_['dtmfParameters']
                    as core.Map<core.String, core.dynamic>)
            : null,
        endUserSuggestionResults:
            json_.containsKey('endUserSuggestionResults')
                ? (json_['endUserSuggestionResults'] as core.List)
                    .map((value) =>
                        GoogleCloudDialogflowV2SuggestionResult.fromJson(
                            value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
        humanAgentSuggestionResults:
            json_.containsKey('humanAgentSuggestionResults')
                ? (json_['humanAgentSuggestionResults'] as core.List)
                    .map((value) =>
                        GoogleCloudDialogflowV2SuggestionResult.fromJson(
                            value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
        message: json_.containsKey('message')
            ? GoogleCloudDialogflowV2Message.fromJson(
                json_['message'] as core.Map<core.String, core.dynamic>)
            : null,
        replyAudio: json_.containsKey('replyAudio')
            ? GoogleCloudDialogflowV2OutputAudio.fromJson(
                json_['replyAudio'] as core.Map<core.String, core.dynamic>)
            : null,
        replyText: json_.containsKey('replyText')
            ? json_['replyText'] as core.String
            : null,
      );