GoogleCloudContactcenterinsightsV1CalculateStatsResponse.fromJson constructor

GoogleCloudContactcenterinsightsV1CalculateStatsResponse.fromJson(
  1. Map json_
)

Implementation

GoogleCloudContactcenterinsightsV1CalculateStatsResponse.fromJson(
  core.Map json_,
) : this(
      averageDuration: json_['averageDuration'] as core.String?,
      averageTurnCount: json_['averageTurnCount'] as core.int?,
      conversationCount: json_['conversationCount'] as core.int?,
      conversationCountTimeSeries:
          json_.containsKey('conversationCountTimeSeries')
          ? GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeries.fromJson(
              json_['conversationCountTimeSeries']
                  as core.Map<core.String, core.dynamic>,
            )
          : null,
      customHighlighterMatches:
          (json_['customHighlighterMatches']
                  as core.Map<core.String, core.dynamic>?)
              ?.map((key, value) => core.MapEntry(key, value as core.int)),
      issueMatches:
          (json_['issueMatches'] as core.Map<core.String, core.dynamic>?)
              ?.map((key, value) => core.MapEntry(key, value as core.int)),
      issueMatchesStats:
          (json_['issueMatchesStats'] as core.Map<core.String, core.dynamic>?)
              ?.map(
                (key, value) => core.MapEntry(
                  key,
                  GoogleCloudContactcenterinsightsV1IssueModelLabelStatsIssueStats.fromJson(
                    value as core.Map<core.String, core.dynamic>,
                  ),
                ),
              ),
      smartHighlighterMatches:
          (json_['smartHighlighterMatches']
                  as core.Map<core.String, core.dynamic>?)
              ?.map((key, value) => core.MapEntry(key, value as core.int)),
    );