@override Object toJson() => { if (min.isNotDefault) 'min': encodeDouble(min), if (max.isNotDefault) 'max': encodeDouble(max), };