factory Range.fromJSON(Map<String, dynamic> data) { return Range( low: (data["low"] as num?)?.toDouble(), high: (data["high"] as num?)?.toDouble() ); }