GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig.fromMap constructor

GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig.fromMap(Map<String, dynamic> map) {
  return GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig(
    attributionScoreDriftThresholds: (() { final guardedValue = map['attributionScoreDriftThresholds']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as Map).cast<String, String>()); })(),
    defaultDriftThreshold: (() { final guardedValue = map['defaultDriftThreshold']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudAiplatformV1ThresholdConfig.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    driftThresholds: (() { final guardedValue = map['driftThresholds']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as Map).cast<String, String>()); })(),
  );
}