GoogleCloudDialogflowCxV3Flow.fromJson constructor

GoogleCloudDialogflowCxV3Flow.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowCxV3Flow.fromJson(core.Map json_)
    : this(
        advancedSettings: json_.containsKey('advancedSettings')
            ? GoogleCloudDialogflowCxV3AdvancedSettings.fromJson(
                json_['advancedSettings']
                    as core.Map<core.String, core.dynamic>)
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        eventHandlers: json_.containsKey('eventHandlers')
            ? (json_['eventHandlers'] as core.List)
                .map((value) =>
                    GoogleCloudDialogflowCxV3EventHandler.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        knowledgeConnectorSettings: json_
                .containsKey('knowledgeConnectorSettings')
            ? GoogleCloudDialogflowCxV3KnowledgeConnectorSettings.fromJson(
                json_['knowledgeConnectorSettings']
                    as core.Map<core.String, core.dynamic>)
            : null,
        multiLanguageSettings: json_.containsKey('multiLanguageSettings')
            ? GoogleCloudDialogflowCxV3FlowMultiLanguageSettings.fromJson(
                json_['multiLanguageSettings']
                    as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        nluSettings: json_.containsKey('nluSettings')
            ? GoogleCloudDialogflowCxV3NluSettings.fromJson(
                json_['nluSettings'] as core.Map<core.String, core.dynamic>)
            : null,
        transitionRouteGroups: json_.containsKey('transitionRouteGroups')
            ? (json_['transitionRouteGroups'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        transitionRoutes: json_.containsKey('transitionRoutes')
            ? (json_['transitionRoutes'] as core.List)
                .map((value) =>
                    GoogleCloudDialogflowCxV3TransitionRoute.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );