ModelMonitoringSpec.fromJson constructor

ModelMonitoringSpec.fromJson(
  1. Object? j
)

Implementation

factory ModelMonitoringSpec.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return ModelMonitoringSpec(
    objectiveSpec: switch (json['objectiveSpec']) {
      null => null,
      Object $1 => ModelMonitoringObjectiveSpec.fromJson($1),
    },
    notificationSpec: switch (json['notificationSpec']) {
      null => null,
      Object $1 => ModelMonitoringNotificationSpec.fromJson($1),
    },
    outputSpec: switch (json['outputSpec']) {
      null => null,
      Object $1 => ModelMonitoringOutputSpec.fromJson($1),
    },
  );
}