GoogleCloudDialogflowV2GeneratorSuggestion.fromJson constructor

GoogleCloudDialogflowV2GeneratorSuggestion.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowV2GeneratorSuggestion.fromJson(core.Map json_)
  : this(
      agentCoachingSuggestion: json_.containsKey('agentCoachingSuggestion')
          ? GoogleCloudDialogflowV2AgentCoachingSuggestion.fromJson(
              json_['agentCoachingSuggestion']
                  as core.Map<core.String, core.dynamic>,
            )
          : null,
      freeFormSuggestion: json_.containsKey('freeFormSuggestion')
          ? GoogleCloudDialogflowV2FreeFormSuggestion.fromJson(
              json_['freeFormSuggestion']
                  as core.Map<core.String, core.dynamic>,
            )
          : null,
      summarySuggestion: json_.containsKey('summarySuggestion')
          ? GoogleCloudDialogflowV2SummarySuggestion.fromJson(
              json_['summarySuggestion']
                  as core.Map<core.String, core.dynamic>,
            )
          : null,
      toolCallInfo: (json_['toolCallInfo'] as core.List?)
          ?.map(
            (value) =>
                GoogleCloudDialogflowV2GeneratorSuggestionToolCallInfo.fromJson(
                  value as core.Map<core.String, core.dynamic>,
                ),
          )
          .toList(),
    );