GoogleCloudDialogflowCxV3ExperimentResultVersionMetrics.fromJson constructor

GoogleCloudDialogflowCxV3ExperimentResultVersionMetrics.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowCxV3ExperimentResultVersionMetrics.fromJson(
    core.Map json_)
    : this(
        metrics: json_.containsKey('metrics')
            ? (json_['metrics'] as core.List)
                .map((value) =>
                    GoogleCloudDialogflowCxV3ExperimentResultMetric.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        sessionCount: json_.containsKey('sessionCount')
            ? json_['sessionCount'] as core.int
            : null,
        version: json_.containsKey('version')
            ? json_['version'] as core.String
            : null,
      );