ModelMonitoringObjectiveConfig.fromJson constructor

ModelMonitoringObjectiveConfig.fromJson(
  1. Object? j
)

Implementation

factory ModelMonitoringObjectiveConfig.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return ModelMonitoringObjectiveConfig(
    trainingDataset: switch (json['trainingDataset']) {
      null => null,
      Object $1 => ModelMonitoringObjectiveConfig_TrainingDataset.fromJson(
        $1,
      ),
    },
    trainingPredictionSkewDetectionConfig:
        switch (json['trainingPredictionSkewDetectionConfig']) {
          null => null,
          Object $1 =>
            ModelMonitoringObjectiveConfig_TrainingPredictionSkewDetectionConfig.fromJson(
              $1,
            ),
        },
    predictionDriftDetectionConfig:
        switch (json['predictionDriftDetectionConfig']) {
          null => null,
          Object $1 =>
            ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig.fromJson(
              $1,
            ),
        },
    explanationConfig: switch (json['explanationConfig']) {
      null => null,
      Object $1 => ModelMonitoringObjectiveConfig_ExplanationConfig.fromJson(
        $1,
      ),
    },
  );
}