I'm using Retrofit and AutoValue with the GSON extension. Everything works fine but I didn't find a way to initialize a property when the server does not return a value for it. I can add the annotation @Nullable to avoid the NPE but I'd like to be able to avoid the nulls and set a default value for the properties not set in the json.
I know how to use builders to set properties without using the gson extension but I don't know how to use these builders (or any other mean) when using the extension to set the default values.