Skip to content

Instantly share code, notes, and snippets.

@StylingAndroid
Created September 17, 2014 23:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save StylingAndroid/976f3ad3796584bd64e9 to your computer and use it in GitHub Desktop.
Save StylingAndroid/976f3ad3796584bd64e9 to your computer and use it in GitHub Desktop.
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