package com.letsvote.model; /** * Created by Admin on 9/7/15. */ 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; import java.util.HashMap; import java.util.Map; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "type", "name", "count" }) public class ConstituencyItem { @JsonProperty("type") private String type; @JsonProperty("name") private String name; @JsonProperty("count") private Integer count; @JsonIgnore private Map<String, Object> additionalProperties = new HashMap<String, Object>(); /** * * @return * The type */ @JsonProperty("type") public String getType() { return type; } /** * * @param type * The type */ @JsonProperty("type") public void setType(String type) { this.type = type; } /** * * @return * The name */ @JsonProperty("name") public String getName() { return name; } /** * * @param name * The name */ @JsonProperty("name") public void setName(String name) { this.name = name; } /** * * @return * The count */ @JsonProperty("count") public Integer getCount() { return count; } /** * * @param count * The count */ @JsonProperty("count") public void setCount(Integer count) { this.count = count; } @JsonAnyGetter public Map<String, Object> getAdditionalProperties() { return this.additionalProperties; } @JsonAnySetter public void setAdditionalProperty(String name, Object value) { this.additionalProperties.put(name, value); } }