package com.lucilu.rxdynamicsearch.data.pojo;

import android.support.annotation.NonNull;

import static com.lucilu.rxdynamicsearch.utils.Preconditions.get;

public final class Country {

    @NonNull
    private final String mName;

    @NonNull
    private final String mCapital;

    @NonNull
    private final String mRegion;

    public Country(@NonNull final String name,
                   @NonNull final String capital,
                   @NonNull final String region) {
        mName = get(name);
        mCapital = get(capital);
        mRegion = get(region);
    }

    @NonNull
    public String getName() {
        return mName;
    }

    @NonNull
    public String getCapital() {
        return mCapital;
    }

    @NonNull
    public String getRegion() {
        return mRegion;
    }

    @Override
    public boolean equals(final Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        final Country country = (Country) o;

        if (!mName.equals(country.mName)) {
            return false;
        }
        if (!mCapital.equals(country.mCapital)) {
            return false;
        }
        return mRegion.equals(country.mRegion);

    }

    @Override
    public int hashCode() {
        int result = mName.hashCode();
        result = 31 * result + mCapital.hashCode();
        result = 31 * result + mRegion.hashCode();
        return result;
    }

    @Override
    public String toString() {
        return "Country{" +
               "mName='" + mName + '\'' +
               ", mCapital='" + mCapital + '\'' +
               ", mRegion='" + mRegion + '\'' +
               '}';
    }
}

@@ -40,16 +40,68 @@
 .pojo;%0A%0A
+import com.google.gson.annotations.SerializedName;%0A%0A
 import a
@@ -135,16 +135,16 @@
 onNull;%0A
-
 %0Aimport 
@@ -238,32 +238,60 @@
 %7B%0A%0A    @NonNull%0A
+    @SerializedName(%22name%22)%0A
     private fina
@@ -312,32 +312,63 @@
 ;%0A%0A    @NonNull%0A
+    @SerializedName(%22capital%22)%0A
     private fina
@@ -387,16 +387,16 @@
 pital;%0A%0A
-
     @Non
@@ -396,24 +396,54 @@
    @NonNull%0A
+    @SerializedName(%22region%22)%0A
     private 

Add missing serialized names to country