73 lines
1.7 KiB
Java
73 lines
1.7 KiB
Java
|
|
package spoonaccular.models.ingredients_by_id;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
import javax.annotation.Generated;
|
|
import com.fasterxml.jackson.annotation.JsonAnyGetter;
|
|
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
|
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
|
@JsonPropertyOrder({
|
|
"name",
|
|
"image",
|
|
"amount"
|
|
})
|
|
@Generated("jsonschema2pojo")
|
|
public class Ingredient {
|
|
|
|
@JsonProperty("name")
|
|
private String name;
|
|
@JsonProperty("image")
|
|
private String image;
|
|
@JsonProperty("amount")
|
|
private Amount amount;
|
|
@JsonIgnore
|
|
private Map<String, Object> additionalProperties = new HashMap<String, Object>();
|
|
|
|
@JsonProperty("name")
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
@JsonProperty("name")
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
@JsonProperty("image")
|
|
public String getImage() {
|
|
return image;
|
|
}
|
|
|
|
@JsonProperty("image")
|
|
public void setImage(String image) {
|
|
this.image = image;
|
|
}
|
|
|
|
@JsonProperty("amount")
|
|
public Amount getAmount() {
|
|
return amount;
|
|
}
|
|
|
|
@JsonProperty("amount")
|
|
public void setAmount(Amount amount) {
|
|
this.amount = amount;
|
|
}
|
|
|
|
@JsonAnyGetter
|
|
public Map<String, Object> getAdditionalProperties() {
|
|
return this.additionalProperties;
|
|
}
|
|
|
|
@JsonAnySetter
|
|
public void setAdditionalProperty(String name, Object value) {
|
|
this.additionalProperties.put(name, value);
|
|
}
|
|
|
|
}
|