I created a model:
public class UserRequest extends DefaultRequest { public String username; public String password; public String id; public Us
from the GsonBuilder javadocs... you can use GsonBuilder to construct your Gson instance, and opt in to have null values serialized as so:
GsonBuilder
Gson
Gson gson = new GsonBuilder() .serializeNulls() .create();