GoogleCloudContactcenterinsightsV1GenerativeInsights.fromJson constructor

GoogleCloudContactcenterinsightsV1GenerativeInsights.fromJson(
  1. Map json_
)

Implementation

GoogleCloudContactcenterinsightsV1GenerativeInsights.fromJson(core.Map json_)
  : this(
      chartCheckpoint: json_.containsKey('chartCheckpoint')
          ? GoogleCloudContactcenterinsightsV1GenerativeInsightsChartCheckpoint.fromJson(
              json_['chartCheckpoint'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      chartConversations: (json_['chartConversations'] as core.List?)
          ?.map(
            (value) =>
                GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversation.fromJson(
                  value as core.Map<core.String, core.dynamic>,
                ),
          )
          .toList(),
      chartSpec: json_.containsKey('chartSpec')
          ? json_['chartSpec'] as core.Map<core.String, core.dynamic>
          : null,
      request: json_.containsKey('request')
          ? json_['request'] as core.Map<core.String, core.dynamic>
          : null,
      sqlComparisonKey: json_['sqlComparisonKey'] as core.String?,
      sqlQuery: json_['sqlQuery'] as core.String?,
    );