Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import com.google.gson.annotations.SerializedName;
public class GsonClass {
private static final String EMPTY = "";
@SerializedName("mandatory")
private String mandatory;
@SerializedName("optional")
private String optional;
public GsonClass() {
optional = EMPTY;
}
public String getMandatory() {
return mandatory;
}
public String getOptional() {
return optional;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment