GoogleCloudContactcenterinsightsV1CalculateStatsResponse.fromJson constructor

GoogleCloudContactcenterinsightsV1CalculateStatsResponse.fromJson(
  1. Map json_
)

Implementation

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