GoogleCloudDialogflowV2QueryParameters.fromJson constructor

GoogleCloudDialogflowV2QueryParameters.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowV2QueryParameters.fromJson(core.Map json_)
    : this(
        contexts: json_.containsKey('contexts')
            ? (json_['contexts'] as core.List)
                .map((value) => GoogleCloudDialogflowV2Context.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        geoLocation: json_.containsKey('geoLocation')
            ? GoogleTypeLatLng.fromJson(
                json_['geoLocation'] as core.Map<core.String, core.dynamic>)
            : null,
        payload: json_.containsKey('payload')
            ? json_['payload'] as core.Map<core.String, core.dynamic>
            : null,
        platform: json_.containsKey('platform')
            ? json_['platform'] as core.String
            : null,
        resetContexts: json_.containsKey('resetContexts')
            ? json_['resetContexts'] as core.bool
            : null,
        sentimentAnalysisRequestConfig: json_
                .containsKey('sentimentAnalysisRequestConfig')
            ? GoogleCloudDialogflowV2SentimentAnalysisRequestConfig.fromJson(
                json_['sentimentAnalysisRequestConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        sessionEntityTypes: json_.containsKey('sessionEntityTypes')
            ? (json_['sessionEntityTypes'] as core.List)
                .map((value) =>
                    GoogleCloudDialogflowV2SessionEntityType.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : 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,
      );