I am using Immutables and I configure my generated class to be instantiated through a constructor.
@Gson.TypeAdapters
@Value.Immutable(builder = false)
@Value.Style(
of = "new",
allParameters = true,
get = {"get*", "is*"})
public interface MyClass {
String getX();
boolean isGreen();
}
However now instances are serialized as tuples as specified in https://immutables.github.io/json.html#tuples-of-constructor-arguments
["someValueOfX", true]
Instead I require the same serialization as when I use builder instead of constructor
{
"x" : "someValueOfX",
"green" : true
}
Is it possible to disable serialization into tuple?