public < T extends Enum < T > > String serializeToQueryParams ( T value ) { return ( String ) objectMapper . convertValue ( value , String . class ) ; }
Serialize the given model to a representation suitable for using as URL query parameters .