ModelMonitoringAlertCondition.fromJson constructor

ModelMonitoringAlertCondition.fromJson(
  1. Object? j
)

Implementation

factory ModelMonitoringAlertCondition.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return ModelMonitoringAlertCondition(
    threshold: switch (json['threshold']) {
      null => null,
      Object $1 => decodeDouble($1),
    },
  );
}