GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig.fromJson constructor

GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig.fromJson(
  core.Map json_,
) : this(
      attributionScoreSkewThresholds: (json_['attributionScoreSkewThresholds']
              as core.Map<core.String, core.dynamic>?)
          ?.map(
            (key, value) => core.MapEntry(
              key,
              GoogleCloudAiplatformV1ThresholdConfig.fromJson(
                value as core.Map<core.String, core.dynamic>,
              ),
            ),
          ),
      defaultSkewThreshold:
          json_.containsKey('defaultSkewThreshold')
              ? GoogleCloudAiplatformV1ThresholdConfig.fromJson(
                json_['defaultSkewThreshold']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
      skewThresholds: (json_['skewThresholds']
              as core.Map<core.String, core.dynamic>?)
          ?.map(
            (key, value) => core.MapEntry(
              key,
              GoogleCloudAiplatformV1ThresholdConfig.fromJson(
                value as core.Map<core.String, core.dynamic>,
              ),
            ),
          ),
    );