Skip to content

Instantly share code, notes, and snippets.

@henesgokdag
Last active March 6, 2021 18:35
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 henesgokdag/909ed76ff6ed8cb49294ba58c3bd352c to your computer and use it in GitHub Desktop.
Save henesgokdag/909ed76ff6ed8cb49294ba58c3bd352c to your computer and use it in GitHub Desktop.
RestAssured-RickAndMortyApi_CharacterModel
package Models;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonProperty;
import org.codehaus.jackson.annotate.JsonPropertyOrder;
import org.codehaus.jackson.map.annotate.JsonSerialize;
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonPropertyOrder({
"id",
"name",
"status",
"gender",
"location"
})
@JsonIgnoreProperties(ignoreUnknown = true)
public class Character {
@JsonProperty("id")
String id;
@JsonProperty("name")
String name;
@JsonProperty("status")
String status;
@JsonProperty("gender")
String gender;
@JsonProperty("location")
Location location;
public Location getLocation() {
return location;
}
public String getGender() {
return gender;
}
public String getId() {
return id;
}
public String getName() {
return name;
}
public String getStatus() {
return status;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment