You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We conditionally expose fields in our models with the @Expose annotation. GsonBuilder can be configured to recognize. Is there a plan to enable this feature with auto-value-gson extension?
public class MyModel {
private long doNotExpose;
@Expose @SerializedName("expose_me") private long exposeMe;
...
}
final Gson gson = new GsonBuilder()
.excludeFieldsWithoutExposeAnnotation()
...
.create();
The text was updated successfully, but these errors were encountered:
We conditionally expose fields in our models with the
@Expose
annotation. GsonBuilder can be configured to recognize. Is there a plan to enable this feature with auto-value-gson extension?The text was updated successfully, but these errors were encountered: