GoogleCloudDialogflowV2SuggestionResult.fromJson constructor

GoogleCloudDialogflowV2SuggestionResult.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowV2SuggestionResult.fromJson(core.Map json_)
    : this(
        error: json_.containsKey('error')
            ? GoogleRpcStatus.fromJson(
                json_['error'] as core.Map<core.String, core.dynamic>)
            : null,
        suggestArticlesResponse: json_.containsKey('suggestArticlesResponse')
            ? GoogleCloudDialogflowV2SuggestArticlesResponse.fromJson(
                json_['suggestArticlesResponse']
                    as core.Map<core.String, core.dynamic>)
            : null,
        suggestFaqAnswersResponse:
            json_.containsKey('suggestFaqAnswersResponse')
                ? GoogleCloudDialogflowV2SuggestFaqAnswersResponse.fromJson(
                    json_['suggestFaqAnswersResponse']
                        as core.Map<core.String, core.dynamic>)
                : null,
        suggestKnowledgeAssistResponse: json_
                .containsKey('suggestKnowledgeAssistResponse')
            ? GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse.fromJson(
                json_['suggestKnowledgeAssistResponse']
                    as core.Map<core.String, core.dynamic>)
            : null,
        suggestSmartRepliesResponse:
            json_.containsKey('suggestSmartRepliesResponse')
                ? GoogleCloudDialogflowV2SuggestSmartRepliesResponse.fromJson(
                    json_['suggestSmartRepliesResponse']
                        as core.Map<core.String, core.dynamic>)
                : null,
      );