GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig.fromJson constructor

GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig.fromJson(
    core.Map json_)
    : this(
        attributionScoreDriftThresholds:
            json_.containsKey('attributionScoreDriftThresholds')
                ? (json_['attributionScoreDriftThresholds']
                        as core.Map<core.String, core.dynamic>)
                    .map(
                    (key, value) => core.MapEntry(
                      key,
                      GoogleCloudAiplatformV1ThresholdConfig.fromJson(
                          value as core.Map<core.String, core.dynamic>),
                    ),
                  )
                : null,
        defaultDriftThreshold: json_.containsKey('defaultDriftThreshold')
            ? GoogleCloudAiplatformV1ThresholdConfig.fromJson(
                json_['defaultDriftThreshold']
                    as core.Map<core.String, core.dynamic>)
            : null,
        driftThresholds: json_.containsKey('driftThresholds')
            ? (json_['driftThresholds']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  GoogleCloudAiplatformV1ThresholdConfig.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
      );