@override Map<String, Object?> toJson() => { if (max != null) "max": encodeValue(max), "min": encodeValue(min), };