factory ThresholdConfig.fromJson(Map<String, dynamic> json) { return ThresholdConfig(value: decodeDouble(json['value'])); }