GoogleCloudDialogflowCxV3KnowledgeConnectorSettings.fromJson constructor

GoogleCloudDialogflowCxV3KnowledgeConnectorSettings.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowCxV3KnowledgeConnectorSettings.fromJson(core.Map json_)
    : this(
        dataStoreConnections: json_.containsKey('dataStoreConnections')
            ? (json_['dataStoreConnections'] as core.List)
                .map((value) =>
                    GoogleCloudDialogflowCxV3DataStoreConnection.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        enabled: json_.containsKey('enabled')
            ? json_['enabled'] as core.bool
            : null,
        targetFlow: json_.containsKey('targetFlow')
            ? json_['targetFlow'] as core.String
            : null,
        targetPage: json_.containsKey('targetPage')
            ? json_['targetPage'] as core.String
            : null,
        triggerFulfillment: json_.containsKey('triggerFulfillment')
            ? GoogleCloudDialogflowCxV3Fulfillment.fromJson(
                json_['triggerFulfillment']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );