factory Thresholds.fromJson(Map<String, dynamic> json) => Thresholds( convertInt(json['low_threshold'])!, convertInt(json['med_threshold'])!, convertInt(json['high_threshold'])!);