GoogleCloudDialogflowV2GenerateStatelessSuggestionRequest.fromJson constructor

GoogleCloudDialogflowV2GenerateStatelessSuggestionRequest.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowV2GenerateStatelessSuggestionRequest.fromJson(
    core.Map json_)
    : this(
        conversationContext: json_.containsKey('conversationContext')
            ? GoogleCloudDialogflowV2ConversationContext.fromJson(
                json_['conversationContext']
                    as core.Map<core.String, core.dynamic>)
            : null,
        generator: json_.containsKey('generator')
            ? GoogleCloudDialogflowV2Generator.fromJson(
                json_['generator'] as core.Map<core.String, core.dynamic>)
            : null,
        generatorName: json_.containsKey('generatorName')
            ? json_['generatorName'] as core.String
            : null,
        triggerEvents: json_.containsKey('triggerEvents')
            ? (json_['triggerEvents'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );