GoogleCloudDialogflowCxV3QueryParameters.fromJson constructor

GoogleCloudDialogflowCxV3QueryParameters.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowCxV3QueryParameters.fromJson(core.Map json_)
    : this(
        analyzeQueryTextSentiment:
            json_.containsKey('analyzeQueryTextSentiment')
                ? json_['analyzeQueryTextSentiment'] as core.bool
                : null,
        channel: json_.containsKey('channel')
            ? json_['channel'] as core.String
            : null,
        currentPage: json_.containsKey('currentPage')
            ? json_['currentPage'] as core.String
            : null,
        disableWebhook: json_.containsKey('disableWebhook')
            ? json_['disableWebhook'] as core.bool
            : null,
        endUserMetadata: json_.containsKey('endUserMetadata')
            ? json_['endUserMetadata'] as core.Map<core.String, core.dynamic>
            : null,
        flowVersions: json_.containsKey('flowVersions')
            ? (json_['flowVersions'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        geoLocation: json_.containsKey('geoLocation')
            ? GoogleTypeLatLng.fromJson(
                json_['geoLocation'] as core.Map<core.String, core.dynamic>)
            : null,
        parameters: json_.containsKey('parameters')
            ? json_['parameters'] as core.Map<core.String, core.dynamic>
            : null,
        payload: json_.containsKey('payload')
            ? json_['payload'] as core.Map<core.String, core.dynamic>
            : null,
        populateDataStoreConnectionSignals:
            json_.containsKey('populateDataStoreConnectionSignals')
                ? json_['populateDataStoreConnectionSignals'] as core.bool
                : null,
        searchConfig: json_.containsKey('searchConfig')
            ? GoogleCloudDialogflowCxV3SearchConfig.fromJson(
                json_['searchConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        sessionEntityTypes: json_.containsKey('sessionEntityTypes')
            ? (json_['sessionEntityTypes'] as core.List)
                .map((value) =>
                    GoogleCloudDialogflowCxV3SessionEntityType.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        sessionTtl: json_.containsKey('sessionTtl')
            ? json_['sessionTtl'] as core.String
            : null,
        timeZone: json_.containsKey('timeZone')
            ? json_['timeZone'] as core.String
            : null,
        webhookHeaders: json_.containsKey('webhookHeaders')
            ? (json_['webhookHeaders'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
      );