Hiding unimportant getter methods from swagger UI in Java

I have two fields in my class startDate and endDate of LocalDateTime. Internally, these need to be returned as Optional, while in the query they are provided as LocalDateTimes. @…