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