ModelMonitoringObjectiveConfig.fromJson constructor

ModelMonitoringObjectiveConfig.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ModelMonitoringObjectiveConfig.fromJson(Map<String, dynamic> json) {
  return ModelMonitoringObjectiveConfig(
    trainingDataset: decode(
      json['trainingDataset'],
      ModelMonitoringObjectiveConfig_TrainingDataset.fromJson,
    ),
    trainingPredictionSkewDetectionConfig: decode(
      json['trainingPredictionSkewDetectionConfig'],
      ModelMonitoringObjectiveConfig_TrainingPredictionSkewDetectionConfig
          .fromJson,
    ),
    predictionDriftDetectionConfig: decode(
      json['predictionDriftDetectionConfig'],
      ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig.fromJson,
    ),
    explanationConfig: decode(
      json['explanationConfig'],
      ModelMonitoringObjectiveConfig_ExplanationConfig.fromJson,
    ),
  );
}