@AssistedInject
public FieldValueAlertCondition(Searches searches, @Assisted Stream stream, @Nullable @Assisted String id, @Assisted DateTime createdAt, @Assisted("userid") String creatorUserId, @Assisted Map<String, Object> parameters) {
super(stream, id, Type.FIELD_VALUE, createdAt, creatorUserId, parameters);
this.searches = searches;
this.decimalFormat = new DecimalFormat("#.###", DecimalFormatSymbols.getInstance(Locale.ENGLISH));
<BUG>this.time = Integer.parseInt(String.valueOf(parameters.get("time")));
this.thresholdType = ThresholdType.valueOf(((String) parameters.get("threshold_type")).toUpperCase(Locale.ENGLISH));
this.threshold = Double.parseDouble(String.valueOf(parameters.get("threshold")));
this.type = CheckType.valueOf(((String) parameters.get("type")).toUpperCase(Locale.ENGLISH));</BUG>
this.field = (String) parameters.get("field");

@AssistedInject
public FieldValueAlertCondition(Searches searches, @Assisted Stream stream, @Nullable @Assisted String id, @Assisted DateTime createdAt, @Assisted("userid") String creatorUserId, @Assisted Map<String, Object> parameters) {
super(stream, id, Type.FIELD_VALUE, createdAt, creatorUserId, parameters);
this.searches = searches;
this.decimalFormat = new DecimalFormat("#.###", DecimalFormatSymbols.getInstance(Locale.ENGLISH));
this.time = getNumber(parameters.get("time")).orElse(0).intValue();
this.thresholdType = ThresholdType.valueOf(((String) parameters.get("threshold_type")).toUpperCase(Locale.ENGLISH));
this.threshold = getNumber(parameters.get("threshold")).orElse(0.0).doubleValue();
this.type = CheckType.valueOf(((String) parameters.get("type")).toUpperCase(Locale.ENGLISH));
this.field = (String) parameters.get("field");
