package com.byteowls.jopencage.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

@JsonInclude(Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public class JOpenCageComponents {
  @JsonProperty("ISO_3166-1_alpha-2")
  private String iso3166_1;
  @JsonProperty("_type")
  private String type;
  private String city;
  @JsonProperty("city_district")
  private String cityDistrict;
  private String country;
  @JsonProperty("country_code")
  private String countryCode;
  private String county;
  private String postcode;
  private String road;
  @JsonProperty("house_number")
  private String houseNumber;
  private String state;
  @JsonProperty("political_union")
  private String politicalUnion;
  private String suburb;
  private String town;

  public String getISO3166_1() {
    return iso3166_1;
  }

  public String getType() {
    return type;
  }

  public String getCity() {
    return city;
  }

  public String getCityDistrict() {
    return cityDistrict;
  }

  public String getCountry() {
    return country;
  }

  public String getCountryCode() {
    return countryCode;
  }

  public String getCounty() {
    return county;
  }

  public String getPostcode() {
    return postcode;
  }

  public String getRoad() {
    return road;
  }

  public String getHouseNumber() {
    return houseNumber;
  }

  public String getState() {
    return state;
  }

  public String getPoliticalUnion() {
    return politicalUnion;
  }

  public String getSuburb() {
    return suburb;
  }

  public String getTown() {
    return town;
  }
}

@@ -442,25 +442,24 @@
 ring iso3166
-_
 1;%0D%0A  @JsonP
@@ -996,17 +996,16 @@
 tISO3166
-_
 1() %7B%0D%0A 
@@ -1021,17 +1021,16 @@
  iso3166
-_
 1;%0D%0A  %7D%0D

remove underline in param and getter name