Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
8.1.3
-
None
-
None
Description
It would be useful to be able to create PojoSwaps using a functional interface. Something like this:
JsonSerializer s = JsonSerializer .create() .pojoSwaps( Swaps.swap(MyBean.class, String.class, x -> x.toString()), Swaps.unswap(String.class, MyBean.class, x -> new MyBean(x)) ) .build();