-
-
Save henesgokdag/909ed76ff6ed8cb49294ba58c3bd352c to your computer and use it in GitHub Desktop.
RestAssured-RickAndMortyApi_CharacterModel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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